Internal representation of a peak shape (used by the PeakPickerCWT). More...
#include <OpenMS/TRANSFORMATIONS/RAW2PEAK/PeakShape.h>
Classes | |
| class | PositionLess |
| Comparison of mz_positions. More... | |
Public Types | |
| enum | Type { LORENTZ_PEAK, SECH_PEAK, UNDEFINED } |
Peak shape type (asymmetric lorentzian or asymmetric hyperbolic secans squared). More... | |
| typedef MSSpectrum::const_iterator | PeakIterator |
| Iterator to the raw data vector. | |
Public Member Functions | |
| PeakShape () | |
| Default constructor. | |
| PeakShape (DoubleReal height_, DoubleReal mz_position_, DoubleReal left_width_, DoubleReal right_width_, DoubleReal area_, PeakIterator left_, PeakIterator right_, Type type_) | |
| Constructor that sets most of the members. | |
| PeakShape (DoubleReal height_, DoubleReal mz_position_, DoubleReal left_width_, DoubleReal right_width_, DoubleReal area_, Type type_) | |
| Constructor that sets most of the members. | |
| PeakShape (const PeakShape &rhs) | |
| Copy constructor. | |
| virtual | ~PeakShape () |
| Destructor. | |
| PeakShape & | operator= (const PeakShape &rhs) |
| Assignment operator. | |
| bool | operator== (const PeakShape &rhs) const |
| bool | operator!= (const PeakShape &rhs) const |
| DoubleReal | operator() (DoubleReal x) const |
| Compute the intensity of the peaks shape at position x. | |
| DoubleReal | getSymmetricMeasure () const |
| Computes symmetry measure of the peak shape, which is corresponds to th ratio of the left and right width parameters. | |
| DoubleReal | getFWHM () const |
| Estimates the full width at half maximum. | |
| bool | iteratorsSet () const |
| Check if endpoint iterators. | |
| PeakIterator | getLeftEndpoint () const |
| void | setLeftEndpoint (PeakIterator left_endpoint) |
| PeakIterator | getRightEndpoint () const |
| void | setRightEndpoint (PeakIterator right_endpoint) |
Public Attributes | |
| DoubleReal | height |
| Maximum intensity of the peak shape. | |
| DoubleReal | mz_position |
| Centroid position. | |
| DoubleReal | left_width |
| Left width parameter. | |
| DoubleReal | right_width |
| Right width parameter. | |
| DoubleReal | area |
| Area of the peak shape. | |
| DoubleReal | r_value |
| Correlation coefficient. | |
| DoubleReal | signal_to_noise |
| The signal to noise ratio at the mz_position. | |
| Type | type |
| peak shape type | |
Protected Attributes | |
| PeakIterator | left_endpoint_ |
| Left peak endpoint in the data. | |
| PeakIterator | right_endpoint_ |
| Right peak endpoint in the data. | |
| MSSpectrum | exp_ |
| Needed for initialisation of endpoint iterators. | |
| bool | left_iterator_set_ |
| flag if left endpoint iterator differs from default value | |
| bool | right_iterator_set_ |
| flag if left endpoint iterator differs from default value | |
Internal representation of a peak shape (used by the PeakPickerCWT).
It defines an asymmetric lorentzian and asymmetric hyperbolic squared secan function.
| typedef MSSpectrum ::const_iterator PeakIterator |
Iterator to the raw data vector.
| enum Type |
Peak shape type (asymmetric lorentzian or asymmetric hyperbolic secans squared).
The peak shape can represent an asymmetric lorentzian function, given by
l(x) = height/(1.+pow(left_width*(x - mz_position), 2)) (x<=mz_position)
l(x) = height/(1.+pow(right_width*(x - mz_position), 2)) (x>mz_position)
or an asymmetric hyperbolic secans squared function
s(x) = height/pow(cosh(left_width*(x-mz_position)), 2) (x<=mz_position)
s(x) = height/pow(cosh(right_width*(x-mz_position)), 2) (x>mz_position)
| PeakShape | ( | ) | [inline] |
Default constructor.
| PeakShape | ( | DoubleReal | height_, | |
| DoubleReal | mz_position_, | |||
| DoubleReal | left_width_, | |||
| DoubleReal | right_width_, | |||
| DoubleReal | area_, | |||
| PeakIterator | left_, | |||
| PeakIterator | right_, | |||
| Type | type_ | |||
| ) |
Constructor that sets most of the members.
| PeakShape | ( | DoubleReal | height_, | |
| DoubleReal | mz_position_, | |||
| DoubleReal | left_width_, | |||
| DoubleReal | right_width_, | |||
| DoubleReal | area_, | |||
| Type | type_ | |||
| ) |
Constructor that sets most of the members.
| virtual ~PeakShape | ( | ) | [inline, virtual] |
Destructor.
| DoubleReal getFWHM | ( | ) | const |
Estimates the full width at half maximum.
| PeakIterator getLeftEndpoint | ( | ) | const |
| PeakIterator getRightEndpoint | ( | ) | const |
| DoubleReal getSymmetricMeasure | ( | ) | const |
Computes symmetry measure of the peak shape, which is corresponds to th ratio of the left and right width parameters.
| bool iteratorsSet | ( | ) | const |
Check if endpoint iterators.
| bool operator!= | ( | const PeakShape & | rhs | ) | const |
| DoubleReal operator() | ( | DoubleReal | x | ) | const |
Compute the intensity of the peaks shape at position x.
| bool operator== | ( | const PeakShape & | rhs | ) | const |
| void setLeftEndpoint | ( | PeakIterator | left_endpoint | ) |
| void setRightEndpoint | ( | PeakIterator | right_endpoint | ) |
Area of the peak shape.
MSSpectrum exp_ [protected] |
Needed for initialisation of endpoint iterators.
Maximum intensity of the peak shape.
Referenced by TwoDOptimization::optimizeRegionsScanwise_().
PeakIterator left_endpoint_ [protected] |
Left peak endpoint in the data.
bool left_iterator_set_ [protected] |
flag if left endpoint iterator differs from default value
Left width parameter.
Referenced by TwoDOptimization::optimizeRegionsScanwise_().
Centroid position.
Referenced by PeakShape::PositionLess::operator()(), and TwoDOptimization::optimizeRegionsScanwise_().
Correlation coefficient.
It represents the squared pearson correlation coefficient with the original data (0 <= r_value <= 1).
PeakIterator right_endpoint_ [protected] |
Right peak endpoint in the data.
bool right_iterator_set_ [protected] |
flag if left endpoint iterator differs from default value
Right width parameter.
Referenced by TwoDOptimization::optimizeRegionsScanwise_().
The signal to noise ratio at the mz_position.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1 |