OpenMS
GaussModel.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, 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 
48  void setOffset(CoordinateType offset) override;
49 
51  void setSamples() override;
52 
54  CoordinateType getCenter() const override;
55 
56 protected:
60 
61  void updateMembers_() override;
62  };
63 }
64 
double CoordinateType
Definition: BaseModel.h:25
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:57
CoordinateType max_
Definition: GaussModel.h:58
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:59
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.
double CoordinateType
Definition: InterpolationModel.h:35
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19