OpenMS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EmgModel.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 #pragma once
10 
13 
14 
15 namespace OpenMS
16 {
22  class OPENMS_DLLAPI EmgModel :
23  public InterpolationModel
24  {
25 
26 public:
30 
33 
35  EmgModel(const EmgModel & source);
36 
38  ~EmgModel() override;
39 
41  EmgModel & operator=(const EmgModel & source);
42 
44  void setOffset(CoordinateType offset) override;
45 
47  void setSamples() override;
48 
50  CoordinateType getCenter() const override;
51 
52 protected:
60 
61  void updateMembers_() override;
62  };
63 }
64 
double CoordinateType
Definition: BaseModel.h:25
Definition: EmgModel.h:24
EmgModel()
Default constructor.
CoordinateType min_
Definition: EmgModel.h:53
CoordinateType max_
Definition: EmgModel.h:54
~EmgModel() override
destructor
Math::BasicStatistics< CoordinateType > BasicStatistics
Definition: EmgModel.h:28
void setOffset(CoordinateType offset) override
set offset without being computing all over and without any discrepancy
BasicStatistics statistics_
Definition: EmgModel.h:55
CoordinateType height_
Definition: EmgModel.h:56
InterpolationModel::CoordinateType CoordinateType
Definition: EmgModel.h:27
CoordinateType retention_
Definition: EmgModel.h:59
EmgModel(const EmgModel &source)
copy constructor
void setSamples() override
set sample/supporting points of interpolation
LinearInterpolation::container_type ContainerType
Definition: EmgModel.h:29
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.
CoordinateType width_
Definition: EmgModel.h:57
CoordinateType symmetry_
Definition: EmgModel.h:58
EmgModel & operator=(const EmgModel &source)
assignment operator
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
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19