OpenMS
GaussModel.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 
10 #pragma once
11 
14 
15 namespace OpenMS
16 {
22  class OPENMS_DLLAPI GaussModel :
23  public InterpolationModel
24  {
25 
26 public:
30 
33 
35  GaussModel(const GaussModel & source);
36 
38  ~GaussModel() override;
39 
41  virtual GaussModel & operator=(const GaussModel & source);
42 
44  static BaseModel<1> * create()
45  {
46  return new GaussModel();
47  }
48 
50  static const String getProductName()
51  {
52  return "GaussModel";
53  }
54 
60  void setOffset(CoordinateType offset) override;
61 
63  void setSamples() override;
64 
66  CoordinateType getCenter() const override;
67 
68 protected:
72 
73  void updateMembers_() override;
74  };
75 }
76 
Normal distribution approximated using linear interpolation.
Definition: GaussModel.h:24
InterpolationModel InterpolationModel
Definition: GaussModel.h:29
virtual GaussModel & operator=(const GaussModel &source)
assignment operator
GaussModel(const GaussModel &source)
copy constructor
CoordinateType min_
Definition: GaussModel.h:69
CoordinateType max_
Definition: GaussModel.h:70
GaussModel()
Default constructor.
Math::BasicStatistics< CoordinateType > BasicStatistics
Definition: GaussModel.h:28
void setOffset(CoordinateType offset) override
set the offset of the model
BasicStatistics statistics_
Definition: GaussModel.h:71
InterpolationModel::CoordinateType CoordinateType
Definition: GaussModel.h:27
void setSamples() override
set sample/supporting points of interpolation
CoordinateType getCenter() const override
get the center of the Gaussian model i.e. the position of the maximum
~GaussModel() override
destructor
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
static BaseModel< 1 > * create()
create new GaussModel object (needed by Factory)
Definition: GaussModel.h:44
static const String getProductName()
name of the model (needed by Factory)
Definition: GaussModel.h:50
double CoordinateType
Definition: InterpolationModel.h:35
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22