OpenMS
BiGaussModel.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 {
25  class OPENMS_DLLAPI BiGaussModel :
26  public InterpolationModel
27  {
28 public:
30 
33 
35  BiGaussModel(const BiGaussModel & source);
36 
38  ~BiGaussModel() override;
39 
41  virtual BiGaussModel & operator=(const BiGaussModel & source);
42 
44  static BaseModel<1> * create()
45  {
46  return new BiGaussModel();
47  }
48 
50  static const String getProductName()
51  {
52  return "BiGaussModel";
53  }
54 
60  void setOffset(CoordinateType offset) override;
61 
63  void setSamples() override;
64 
66  CoordinateType getCenter() const override;
67 
68 protected:
73 
74  void updateMembers_() override;
75  };
76 }
77 
BiGaussian distribution approximated using linear interpolation.
Definition: BiGaussModel.h:27
CoordinateType min_
Definition: BiGaussModel.h:69
CoordinateType max_
Definition: BiGaussModel.h:70
Math::BasicStatistics statistics1_
Definition: BiGaussModel.h:71
virtual BiGaussModel & operator=(const BiGaussModel &source)
assignment operator
void setOffset(CoordinateType offset) override
set the offset of the model
BiGaussModel()
Default constructor.
Math::BasicStatistics statistics2_
Definition: BiGaussModel.h:72
InterpolationModel::CoordinateType CoordinateType
Definition: BiGaussModel.h:29
void setSamples() override
set sample/supporting points of interpolation
~BiGaussModel() override
destructor
CoordinateType getCenter() const override
get the center of the BiGaussian model i.e. the position of the maximum
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 BiGaussModel object (function needed by Factory)
Definition: BiGaussModel.h:44
BiGaussModel(const BiGaussModel &source)
copy constructor
static const String getProductName()
name of the model (needed by Factory)
Definition: BiGaussModel.h:50
Abstract class for 1D-models that are approximated using linear interpolation.
Definition: InterpolationModel.h:30
double CoordinateType
Definition: InterpolationModel.h:35
Calculates some basic statistical parameters of a distribution: sum, mean, variance,...
Definition: BasicStatistics.h:43
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22