OpenMS  2.4.0
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
PeakIntegrator Class Reference

Compute the area, background and shape metrics of a peak. More...

#include <OpenMS/ANALYSIS/OPENSWATH/PeakIntegrator.h>

Inheritance diagram for PeakIntegrator:
DefaultParamHandler

Classes

struct  PeakArea
 
struct  PeakBackground
 
struct  PeakShapeMetrics
 

Public Member Functions

 PeakIntegrator ()
 Constructor. More...
 
virtual ~PeakIntegrator ()
 Destructor. More...
 
PeakArea integratePeak (const MSChromatogram &chromatogram, const double left, const double right) const
 Compute the area of a peak contained in a MSChromatogram. More...
 
PeakArea integratePeak (const MSChromatogram &chromatogram, MSChromatogram::ConstIterator &left, MSChromatogram::ConstIterator &right) const
 Compute the area of a peak contained in a MSChromatogram. More...
 
PeakArea integratePeak (const MSSpectrum &spectrum, const double left, const double right) const
 Compute the area of a peak contained in a MSSpectrum. More...
 
PeakArea integratePeak (const MSSpectrum &spectrum, MSSpectrum::ConstIterator &left, MSSpectrum::ConstIterator &right) const
 Compute the area of a peak contained in a MSSpectrum. More...
 
PeakBackground estimateBackground (const MSChromatogram &chromatogram, const double left, const double right, const double peak_apex_pos) const
 Estimate the background of a peak contained in a MSChromatogram. More...
 
PeakBackground estimateBackground (const MSChromatogram &chromatogram, MSChromatogram::ConstIterator &left, MSChromatogram::ConstIterator &right, const double peak_apex_pos) const
 Estimate the background of a peak contained in a MSChromatogram. More...
 
PeakBackground estimateBackground (const MSSpectrum &spectrum, const double left, const double right, const double peak_apex_pos) const
 Estimate the background of a peak contained in a MSSpectrum. More...
 
PeakBackground estimateBackground (const MSSpectrum &spectrum, MSSpectrum::ConstIterator &left, MSSpectrum::ConstIterator &right, const double peak_apex_pos) const
 Estimate the background of a peak contained in a MSSpectrum. More...
 
PeakShapeMetrics calculatePeakShapeMetrics (const MSChromatogram &chromatogram, const double left, const double right, const double peak_height, const double peak_apex_pos) const
 Calculate peak's shape metrics. More...
 
PeakShapeMetrics calculatePeakShapeMetrics (const MSChromatogram &chromatogram, MSChromatogram::ConstIterator &left, MSChromatogram::ConstIterator &right, const double peak_height, const double peak_apex_pos) const
 Calculate peak's shape metrics. More...
 
PeakShapeMetrics calculatePeakShapeMetrics (const MSSpectrum &spectrum, const double left, const double right, const double peak_height, const double peak_apex_pos) const
 Calculate peak's shape metrics. More...
 
PeakShapeMetrics calculatePeakShapeMetrics (const MSSpectrum &spectrum, MSSpectrum::ConstIterator &left, MSSpectrum::ConstIterator &right, const double peak_height, const double peak_apex_pos) const
 Calculate peak's shape metrics. More...
 
void getDefaultParameters (Param &params)
 
- Public Member Functions inherited from DefaultParamHandler
 DefaultParamHandler (const String &name)
 Constructor with name that is displayed in error messages. More...
 
 DefaultParamHandler (const DefaultParamHandler &rhs)
 Copy constructor. More...
 
virtual ~DefaultParamHandler ()
 Destructor. More...
 
virtual DefaultParamHandleroperator= (const DefaultParamHandler &rhs)
 Assignment operator. More...
 
virtual bool operator== (const DefaultParamHandler &rhs) const
 Equality operator. More...
 
void setParameters (const Param &param)
 Sets the parameters. More...
 
const ParamgetParameters () const
 Non-mutable access to the parameters. More...
 
const ParamgetDefaults () const
 Non-mutable access to the default parameters. More...
 
const StringgetName () const
 Non-mutable access to the name. More...
 
void setName (const String &name)
 Mutable access to the name. More...
 
const std::vector< String > & getSubsections () const
 Non-mutable access to the registered subsections. More...
 

Static Public Attributes

Constant expressions for parameters

Constants expressions used throughout the code and tests to set the integration and baseline types.

static constexpr const char * INTEGRATION_TYPE_INTENSITYSUM = "intensity_sum"
 
static constexpr const char * INTEGRATION_TYPE_TRAPEZOID = "trapezoid"
 Integration type: trapezoid. More...
 
static constexpr const char * INTEGRATION_TYPE_SIMPSON = "simpson"
 Integration type: simpson. More...
 
static constexpr const char * BASELINE_TYPE_BASETOBASE = "base_to_base"
 Baseline type: base to base. More...
 
static constexpr const char * BASELINE_TYPE_VERTICALDIVISION = "vertical_division"
 Baseline type: vertical division (min of end points; only for backwards compatibility) More...
 
static constexpr const char * BASELINE_TYPE_VERTICALDIVISION_MIN = "vertical_division_min"
 Baseline type: vertical division (min of end points) More...
 
static constexpr const char * BASELINE_TYPE_VERTICALDIVISION_MAX = "vertical_division_max"
 Baseline type: vertical division (max of end points) More...
 

Protected Member Functions

void updateMembers_ ()
 This method is used to update extra member variables at the end of the setParameters() method. More...
 
template<typename PeakContainerT >
PeakArea integratePeak_ (const PeakContainerT &pc, double left, double right) const
 
template<typename PeakContainerT >
PeakBackground estimateBackground_ (const PeakContainerT &pc, double left, double right, const double peak_apex_pos) const
 
template<typename PeakContainerConstIteratorT >
double simpson_ (PeakContainerConstIteratorT it_begin, PeakContainerConstIteratorT it_end) const
 
template<typename PeakContainerT >
PeakShapeMetrics calculatePeakShapeMetrics_ (const PeakContainerT &pc, double left, double right, const double peak_height, const double peak_apex_pos) const
 
template<typename PeakContainerConstIteratorT >
double findPosAtPeakHeightPercent_ (PeakContainerConstIteratorT it_begin, PeakContainerConstIteratorT it_end, const double peak_height, const double percent, const bool is_left_half) const
 Find the position (RT/MZ) at a given percentage of peak's height. More...
 
- Protected Member Functions inherited from DefaultParamHandler
void defaultsToParam_ ()
 Updates the parameters after the defaults have been set in the constructor. More...
 

Private Member Functions

template<typename PeakContainerT >
const PeakContainerT & EMGPreProcess_ (const PeakContainerT &pc, PeakContainerT &emg_pc, double &left, double &right) const
 Fit the peak to the EMG model. More...
 
Helper methods

The Simpson's rule implementations for an odd number of unequally spaced points.

double simpson (MSChromatogram::ConstIterator it_begin, MSChromatogram::ConstIterator it_end) const
 Simpson's rule algorithm. More...
 
double simpson (MSSpectrum::ConstIterator it_begin, MSSpectrum::ConstIterator it_end) const
 Simpson's rule algorithm. More...
 

Private Attributes

bool fit_EMG_
 Enable/disable EMG peak model fitting. More...
 
EmgGradientDescent emg_
 
Parameters

The user is supposed to select a value for these parameters. By default, the integration_type_ is "intensity_sum" and the baseline_type_ is "base_to_base".

String integration_type_ = INTEGRATION_TYPE_INTENSITYSUM
 
String baseline_type_ = BASELINE_TYPE_BASETOBASE
 

Additional Inherited Members

- Protected Attributes inherited from DefaultParamHandler
Param param_
 Container for current parameters. More...
 
Param defaults_
 Container for default parameters. This member should be filled in the constructor of derived classes! More...
 
std::vector< Stringsubsections_
 Container for registered subsections. This member should be filled in the constructor of derived classes! More...
 
String error_name_
 Name that is displayed in error messages during the parameter checking. More...
 
bool check_defaults_
 If this member is set to false no checking if parameters in done;. More...
 
bool warn_empty_defaults_
 If this member is set to false no warning is emitted when defaults are empty;. More...
 

Detailed Description

Compute the area, background and shape metrics of a peak.

The area computation is performed in integratePeak() and it supports integration by simple sum of the intensity, integration by Simpson's rule implementations for an odd number of unequally spaced points or integration by the trapezoid rule.

The background computation is performed in estimateBackground() and it supports three different approaches to baseline correction, namely computing a rectangular shape under the peak based on the minimum value of the peak borders (vertical_division_min), a rectangular shape based on the maximum value of the beak borders (vertical_division_max) or a trapezoidal shape based on a straight line between the peak borders (base_to_base).

Peak shape metrics are computed in calculatePeakShapeMetrics() and multiple metrics are supported.

The containers supported by the methods are MSChromatogram and MSSpectrum.

Constructor & Destructor Documentation

◆ PeakIntegrator()

Constructor.

◆ ~PeakIntegrator()

virtual ~PeakIntegrator ( )
virtual

Destructor.

Member Function Documentation

◆ calculatePeakShapeMetrics() [1/4]

PeakShapeMetrics calculatePeakShapeMetrics ( const MSChromatogram chromatogram,
const double  left,
const double  right,
const double  peak_height,
const double  peak_apex_pos 
) const

Calculate peak's shape metrics.

The calculated characteristics are the start and end times at 0.05, 0.10 and 0.5 the peak's height. Also the widths at those positions are calculated. Other values: the peak's total width, its tailing factor, asymmetry factor, baseline delta to height and the slope of the baseline. The number of points across the baseline and also at half height are saved.

Note
Make sure the chromatogram is sorted with respect to retention time.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe left retention time boundary
[in]rightThe right retention time boundary
[in]peak_heightThe peak's highest intensity
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the calculated peak shape metrics

◆ calculatePeakShapeMetrics() [2/4]

PeakShapeMetrics calculatePeakShapeMetrics ( const MSChromatogram chromatogram,
MSChromatogram::ConstIterator left,
MSChromatogram::ConstIterator right,
const double  peak_height,
const double  peak_apex_pos 
) const

Calculate peak's shape metrics.

The calculated characteristics are the start and end times at 0.05, 0.10 and 0.5 the peak's height. Also the widths at those positions are calculated. Other values: the peak's total width, its tailing factor, asymmetry factor, baseline delta to height and the slope of the baseline. The number of points across the baseline and also at half height are saved.

Note
Make sure the chromatogram is sorted with respect to retention time.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
[in]peak_heightThe peak's highest intensity
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the calculated peak shape metrics

◆ calculatePeakShapeMetrics() [3/4]

PeakShapeMetrics calculatePeakShapeMetrics ( const MSSpectrum spectrum,
const double  left,
const double  right,
const double  peak_height,
const double  peak_apex_pos 
) const

Calculate peak's shape metrics.

The calculated characteristics are the start and end positions at 0.05, 0.10 and 0.5 the peak's height. Also the widths at those positions are calculated. Other values: the peak's total width, its tailing factor, asymmetry factor, baseline delta to height and the slope of the baseline. The number of points across the baseline and also at half height are saved.

Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe left mass-to-charge ratio boundary
[in]rightThe right mass-to-charge ratio boundary
[in]peak_heightThe peak's highest intensity
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the calculated peak shape metrics

◆ calculatePeakShapeMetrics() [4/4]

PeakShapeMetrics calculatePeakShapeMetrics ( const MSSpectrum spectrum,
MSSpectrum::ConstIterator left,
MSSpectrum::ConstIterator right,
const double  peak_height,
const double  peak_apex_pos 
) const

Calculate peak's shape metrics.

The calculated characteristics are the start and end positions at 0.05, 0.10 and 0.5 the peak's height. Also the widths at those positions are calculated. Other values: the peak's total width, its tailing factor, asymmetry factor, baseline delta to height and the slope of the baseline. The number of points across the baseline and also at half height are saved.

Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
[in]peak_heightThe peak's highest intensity
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the calculated peak shape metrics

◆ calculatePeakShapeMetrics_()

PeakShapeMetrics calculatePeakShapeMetrics_ ( const PeakContainerT &  pc,
double  left,
double  right,
const double  peak_height,
const double  peak_apex_pos 
) const
protected

◆ EMGPreProcess_()

const PeakContainerT& EMGPreProcess_ ( const PeakContainerT &  pc,
PeakContainerT &  emg_pc,
double left,
double right 
) const
private

Fit the peak to the EMG model.

The fitting process happens only if `fit_EMG_` is true. `left` and `right` are updated accordingly.

Template Parameters
PeakContainerTEither a MSChromatogram or a MSSpectrum
Parameters
[in]pcInput peak
[out]emg_pcWill possibly contain the processed peak
[in]leftRT or MZ value of the first point of interest
[in]rightRT or MZ value of the first point of interest
Returns
A const reference to `emg_pc` if the fitting is executed, `pc` otherwise.

◆ estimateBackground() [1/4]

PeakBackground estimateBackground ( const MSChromatogram chromatogram,
const double  left,
const double  right,
const double  peak_apex_pos 
) const

Estimate the background of a peak contained in a MSChromatogram.

The user can choose to compute one of two background types: "vertical_sum" and "base_to_base". For the former case, the area is computed as a rectangle with delta RT being the base and the minimum intensity on boundaries as the height. For the latter case, the area is computed as a rectangle trapezoid. Similar to the "vertical_sum" solution, this technique also takes into account the area between the intensities on boundaries.

For both cases, the parameter integration_type_ decides which formula to use to compute the area. The user should make sure to use the same integration_type between calls of estimateBackground() and integratePeak().

Note
Make sure the chromatogram is sorted with respect to retention time.
Exceptions
Exception::InvalidParameterfor class parameter `baseline_type`.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe left retention time boundary
[in]rightThe right retention time boundary
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the informations about the peak's background area and height

◆ estimateBackground() [2/4]

PeakBackground estimateBackground ( const MSChromatogram chromatogram,
MSChromatogram::ConstIterator left,
MSChromatogram::ConstIterator right,
const double  peak_apex_pos 
) const

Estimate the background of a peak contained in a MSChromatogram.

The user can choose to compute one of two background types: "vertical_sum" and "base_to_base". For the former case, the area is computed as a rectangle with delta RT being the base and the minimum intensity on boundaries as the height. For the latter case, the area is computed as a rectangle trapezoid. Similar to the "vertical_sum" solution, this technique also takes into account the area between the intensities on boundaries.

For both cases, the parameter integration_type_ decides which formula to use to compute the area. The user should make sure to use the same integration_type between calls of estimateBackground() and integratePeak().

Note
Make sure the chromatogram is sorted with respect to retention time.
Exceptions
Exception::InvalidParameterfor class parameter `baseline_type`.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the informations about the peak's background area and height

◆ estimateBackground() [3/4]

PeakBackground estimateBackground ( const MSSpectrum spectrum,
const double  left,
const double  right,
const double  peak_apex_pos 
) const

Estimate the background of a peak contained in a MSSpectrum.

The user can choose to compute one of two background types: "vertical_sum" and "base_to_base". For the former case, the area is computed as a rectangle with delta MZ being the base and the minimum intensity on boundaries as the height. For the latter case, the area is computed as a rectangle trapezoid. Similar to the "vertical_sum" solution, this technique also takes into account the area between the intensities on boundaries.

For both cases, the parameter integration_type_ decides which formula to use to compute the area. The user should make sure to use the same integration_type between calls of estimateBackground() and integratePeak().

Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Exceptions
Exception::InvalidParameterfor class parameter `baseline_type`.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe left mass-to-charge ratio boundary
[in]rightThe right mass-to-charge ratio boundary
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the informations about the peak's background area and height

◆ estimateBackground() [4/4]

PeakBackground estimateBackground ( const MSSpectrum spectrum,
MSSpectrum::ConstIterator left,
MSSpectrum::ConstIterator right,
const double  peak_apex_pos 
) const

Estimate the background of a peak contained in a MSSpectrum.

The user can choose to compute one of two background types: "vertical_sum" and "base_to_base". For the former case, the area is computed as a rectangle with delta MZ being the base and the minimum intensity on boundaries as the height. For the latter case, the area is computed as a rectangle trapezoid. Similar to the "vertical_sum" solution, this technique also takes into account the area between the intensities on boundaries.

For both cases, the parameter integration_type_ decides which formula to use to compute the area. The user should make sure to use the same integration_type between calls of estimateBackground() and integratePeak().

Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Exceptions
Exception::InvalidParameterfor class parameter `baseline_type`.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
[in]peak_apex_posThe position of the point with highest intensity
Returns
A struct containing the informations about the peak's background area and height

◆ estimateBackground_()

PeakBackground estimateBackground_ ( const PeakContainerT &  pc,
double  left,
double  right,
const double  peak_apex_pos 
) const
protected

◆ findPosAtPeakHeightPercent_()

double findPosAtPeakHeightPercent_ ( PeakContainerConstIteratorT  it_begin,
PeakContainerConstIteratorT  it_end,
const double  peak_height,
const double  percent,
const bool  is_left_half 
) const
protected

Find the position (RT/MZ) at a given percentage of peak's height.

Note
The method expects that the iterators span half of the peak's width. Examples:
  • Left half case: the range would be [leftMostPt, peakApexPos)
  • Right half case: the range would be [peakApexPos + 1, rightMostPt + 1)
The method assumes a convex peak. If 5%, 10%, or 50% peak heights are not found on either side of the peak, the closest left (for left peak height percentages) and closest right (for right peak height percentages) will be used.
Parameters
[in]it_beginThe iterator to the first point
[in]it_endThe iterator to past-the-last point
[in]peak_heightThe peak's height
[in]percentAt which percentage of the peak height we want to find the position (common values: 0.05, 0.1, 0.5)
[in]is_left_halfAccording to which half of the peak, the algorithm proceeds to the correct direction
Returns
The position found

◆ getDefaultParameters()

void getDefaultParameters ( Param params)

◆ integratePeak() [1/4]

PeakArea integratePeak ( const MSChromatogram chromatogram,
const double  left,
const double  right 
) const

Compute the area of a peak contained in a MSChromatogram.

The value of integration_type_ decides which integration technique to use:

  • "trapezoid" for the trapezoidal rule
  • "simpson" for the Simpson's rule (for unequally spaced points, Shklov, 1960)
  • "intensity_sum" for the simple sum of the intensities
Note
Make sure the chromatogram is sorted with respect to retention time.
Exceptions
Exception::InvalidParameterfor class parameter `integration_type`.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe left retention time boundary
[in]rightThe right retention time boundary
Returns
A struct containing the informations about the peak's area, height and position

◆ integratePeak() [2/4]

PeakArea integratePeak ( const MSChromatogram chromatogram,
MSChromatogram::ConstIterator left,
MSChromatogram::ConstIterator right 
) const

Compute the area of a peak contained in a MSChromatogram.

The value of integration_type_ decides which integration technique to use:

  • "trapezoid" for the trapezoidal rule
  • "simpson" for the Simpson's rule (for unequally spaced points, Shklov, 1960)
  • "intensity_sum" for the simple sum of the intensities
Note
Make sure the chromatogram is sorted with respect to retention time.
Exceptions
Exception::InvalidParameterfor class parameter `integration_type`.
Parameters
[in]chromatogramThe chromatogram which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
Returns
A struct containing the informations about the peak's area, height and position

◆ integratePeak() [3/4]

PeakArea integratePeak ( const MSSpectrum spectrum,
const double  left,
const double  right 
) const

Compute the area of a peak contained in a MSSpectrum.

The value of integration_type_ decides which integration technique to use:

  • "trapezoid" for the trapezoidal rule
  • "simpson" for the Simpson's rule (for unequally spaced points, Shklov, 1960)
  • "intensity_sum" for the simple sum of the intensities
Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Exceptions
Exception::InvalidParameterfor class parameter `integration_type`.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe left mass-to-charge ratio boundary
[in]rightThe right mass-to-charge ratio boundary
Returns
A struct containing the informations about the peak's area, height and position

◆ integratePeak() [4/4]

PeakArea integratePeak ( const MSSpectrum spectrum,
MSSpectrum::ConstIterator left,
MSSpectrum::ConstIterator right 
) const

Compute the area of a peak contained in a MSSpectrum.

The value of integration_type_ decides which integration technique to use:

  • "trapezoid" for the trapezoidal rule
  • "simpson" for the Simpson's rule (for unequally spaced points, Shklov, 1960)
  • "intensity_sum" for the simple sum of the intensities
Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Exceptions
Exception::InvalidParameterfor class parameter `integration_type`.
Parameters
[in]spectrumThe spectrum which contains the peak
[in]leftThe iterator to the first point
[in]rightThe iterator to the last point
Returns
A struct containing the informations about the peak's area, height and position

◆ integratePeak_()

PeakArea integratePeak_ ( const PeakContainerT &  pc,
double  left,
double  right 
) const
protected

◆ simpson() [1/2]

double simpson ( MSChromatogram::ConstIterator  it_begin,
MSChromatogram::ConstIterator  it_end 
) const
private

Simpson's rule algorithm.

This implementation expects an odd number of points. The formula used supports unequally spaced points.

Note
Make sure the chromatogram is sorted with respect to retention time.
Warning
An odd number of points is expected!
Parameters
[in]it_beginThe iterator to the first point
[in]it_endThe iterator to the past-the-last point
Returns
The computed area

◆ simpson() [2/2]

double simpson ( MSSpectrum::ConstIterator  it_begin,
MSSpectrum::ConstIterator  it_end 
) const
private

Simpson's rule algorithm.

This implementation expects an odd number of points. The formula used supports unequally spaced points.

Note
Make sure the spectrum is sorted with respect to mass-to-charge ratio.
Warning
An odd number of points is expected!
Parameters
[in]it_beginThe iterator to the first point
[in]it_endThe iterator to the past-the-last point
Returns
The computed area

◆ simpson_()

double simpson_ ( PeakContainerConstIteratorT  it_begin,
PeakContainerConstIteratorT  it_end 
) const
protected

◆ updateMembers_()

void updateMembers_ ( )
protectedvirtual

This method is used to update extra member variables at the end of the setParameters() method.

Also call it at the end of the derived classes' copy constructor and assignment operator.

The default implementation is empty.

Reimplemented from DefaultParamHandler.

Member Data Documentation

◆ baseline_type_

String baseline_type_ = BASELINE_TYPE_BASETOBASE
private

The baseline type to use in estimateBackground(). Possible values are: "vertical_division_max", "vertical_division_min", "base_to_base".

◆ BASELINE_TYPE_BASETOBASE

constexpr const char* BASELINE_TYPE_BASETOBASE = "base_to_base"
static

Baseline type: base to base.

◆ BASELINE_TYPE_VERTICALDIVISION

constexpr const char* BASELINE_TYPE_VERTICALDIVISION = "vertical_division"
static

Baseline type: vertical division (min of end points; only for backwards compatibility)

◆ BASELINE_TYPE_VERTICALDIVISION_MAX

constexpr const char* BASELINE_TYPE_VERTICALDIVISION_MAX = "vertical_division_max"
static

Baseline type: vertical division (max of end points)

◆ BASELINE_TYPE_VERTICALDIVISION_MIN

constexpr const char* BASELINE_TYPE_VERTICALDIVISION_MIN = "vertical_division_min"
static

Baseline type: vertical division (min of end points)

◆ emg_

EmgGradientDescent emg_
private

◆ fit_EMG_

bool fit_EMG_
private

Enable/disable EMG peak model fitting.

◆ integration_type_

String integration_type_ = INTEGRATION_TYPE_INTENSITYSUM
private

The integration technique to use in integratePeak() and estimateBackground(). Possible values are: "trapezoid", "simpson", "intensity_sum".

◆ INTEGRATION_TYPE_INTENSITYSUM

constexpr const char* INTEGRATION_TYPE_INTENSITYSUM = "intensity_sum"
static

Integration type: intensity sum

◆ INTEGRATION_TYPE_SIMPSON

constexpr const char* INTEGRATION_TYPE_SIMPSON = "simpson"
static

Integration type: simpson.

◆ INTEGRATION_TYPE_TRAPEZOID

constexpr const char* INTEGRATION_TYPE_TRAPEZOID = "trapezoid"
static

Integration type: trapezoid.