OpenMS
EmgModel.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 
16 namespace OpenMS
17 {
23  class OPENMS_DLLAPI EmgModel :
24  public InterpolationModel
25  {
26 
27 public:
31 
34 
36  EmgModel(const EmgModel & source);
37 
39  ~EmgModel() override;
40 
42  EmgModel & operator=(const EmgModel & source);
43 
45  static BaseModel<1> * create()
46  {
47  return new EmgModel();
48  }
49 
51  static const String getProductName()
52  {
53  return "EmgModel";
54  }
55 
57  void setOffset(CoordinateType offset) override;
58 
60  void setSamples() override;
61 
63  CoordinateType getCenter() const override;
64 
65 protected:
73 
74  void updateMembers_() override;
75  };
76 }
77 
Exponentially modified gaussian distribution model for elution profiles.
Definition: EmgModel.h:25
EmgModel()
Default constructor.
CoordinateType min_
Definition: EmgModel.h:66
CoordinateType max_
Definition: EmgModel.h:67
~EmgModel() override
destructor
Math::BasicStatistics< CoordinateType > BasicStatistics
Definition: EmgModel.h:29
void setOffset(CoordinateType offset) override
set offset without being computing all over and without any discrepancy
BasicStatistics statistics_
Definition: EmgModel.h:68
CoordinateType height_
Definition: EmgModel.h:69
InterpolationModel::CoordinateType CoordinateType
Definition: EmgModel.h:28
CoordinateType retention_
Definition: EmgModel.h:72
EmgModel(const EmgModel &source)
copy constructor
void setSamples() override
set sample/supporting points of interpolation
LinearInterpolation::container_type ContainerType
Definition: EmgModel.h:30
CoordinateType getCenter() const override
get the center of the Gaussian 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 EmgModel object (needed by Factory)
Definition: EmgModel.h:45
CoordinateType width_
Definition: EmgModel.h:70
CoordinateType symmetry_
Definition: EmgModel.h:71
EmgModel & operator=(const EmgModel &source)
assignment operator
static const String getProductName()
name of the model (needed by Factory)
Definition: EmgModel.h:51
Abstract class for 1D-models that are approximated using linear interpolation.
Definition: InterpolationModel.h:30
double CoordinateType
Definition: InterpolationModel.h:35
std::vector< value_type > container_type
Definition: LinearInterpolation.h:58
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22