OpenMS
ExtendedIsotopeModel.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 
13 
14 namespace OpenMS
15 {
29  class OPENMS_DLLAPI ExtendedIsotopeModel :
30  public InterpolationModel
31  {
32 
33 public:
36 
37  enum Averagines {C = 0, H, N, O, S, AVERAGINE_NUM};
38 
41 
44 
47 
50 
51  UInt getCharge() const;
52 
54  static BaseModel<1> * create()
55  {
56  return new ExtendedIsotopeModel();
57  }
58 
60  static const String getProductName()
61  {
62  return "ExtendedIsotopeModel";
63  }
64 
72  void setOffset(CoordinateType offset) override;
73 
75 
77  void setSamples() override;
78 
81  CoordinateType getCenter() const override;
82 
83 protected:
87  double averagine_[AVERAGINE_NUM];
91 
92  void updateMembers_() override;
93  };
94 }
95 
Extended isotope distribution approximated using linear interpolation.
Definition: ExtendedIsotopeModel.h:31
UInt charge_
Definition: ExtendedIsotopeModel.h:85
ExtendedIsotopeModel()
Default constructor.
~ExtendedIsotopeModel() override
destructor
CoordinateType isotope_stdev_
Definition: ExtendedIsotopeModel.h:84
ExtendedIsotopeModel(const ExtendedIsotopeModel &source)
copy constructor
CoordinateType monoisotopic_mz_
Definition: ExtendedIsotopeModel.h:86
void setOffset(CoordinateType offset) override
set the offset of the model
virtual ExtendedIsotopeModel & operator=(const ExtendedIsotopeModel &source)
assignment operator
double isotope_distance_
Definition: ExtendedIsotopeModel.h:90
InterpolationModel::CoordinateType CoordinateType
Definition: ExtendedIsotopeModel.h:34
InterpolationModel::CoordinateType IntensityType
Definition: ExtendedIsotopeModel.h:35
void setSamples() override
set sample/supporting points of interpolation
CoordinateType getCenter() const override
get the monoisotopic mass of the Isotope model
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 ExtendedIsotopeModel object (needed by Factory)
Definition: ExtendedIsotopeModel.h:54
Averagines
Definition: ExtendedIsotopeModel.h:37
double trim_right_cutoff_
Definition: ExtendedIsotopeModel.h:89
Int max_isotope_
Definition: ExtendedIsotopeModel.h:88
static const String getProductName()
name of the model (needed by Factory)
Definition: ExtendedIsotopeModel.h:60
CoordinateType getOffset()
Abstract class for 1D-models that are approximated using linear interpolation.
Definition: InterpolationModel.h:30
double CoordinateType
Definition: InterpolationModel.h:35
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:76
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22