OpenMS
2.5.0
|
fundamental data structure for SplineInterpolatedPeaks More...
#include <OpenMS/FILTERING/DATAREDUCTION/SplinePackage.h>
Public Member Functions | |
SplinePackage (std::vector< double > pos, std::vector< double > intensity) | |
constructor More... | |
~SplinePackage () | |
destructor More... | |
double | getPosMin () const |
returns the minimum position for which the spline fit is valid More... | |
double | getPosMax () const |
returns the maximum position for which the spline fit is valid More... | |
double | getPosStepWidth () const |
returns a sensible position step width for the package More... | |
bool | isInPackage (double pos) const |
returns true if position in [posMin:posMax] interval else false More... | |
double | eval (double pos) const |
returns interpolated intensity @ position pos More... | |
Private Attributes | |
double | pos_min_ |
position limits of the package in the raw data spectrum More... | |
double | pos_max_ |
double | pos_step_width_ |
sensible position step width with which to scan through the package More... | |
CubicSpline2d | spline_ |
spline object for interpolation of intensity profile More... | |
fundamental data structure for SplineInterpolatedPeaks
In many cases, data points in MS spectra (or chromatograms) are not equidistant in m/z (or RT) but consist of packages of data points separated by wide m/z (or RT) ranges with zero intensity. SplinePackage contains the spline fit of a single set of such data points.
SplinePackage | ( | std::vector< double > | pos, |
std::vector< double > | intensity | ||
) |
constructor
~SplinePackage | ( | ) |
destructor
double getPosMax | ( | ) | const |
returns the maximum position for which the spline fit is valid
double getPosMin | ( | ) | const |
returns the minimum position for which the spline fit is valid
double getPosStepWidth | ( | ) | const |
returns a sensible position step width for the package
bool isInPackage | ( | double | pos | ) | const |
returns true if position in [posMin:posMax] interval else false
|
private |
|
private |
position limits of the package in the raw data spectrum
|
private |
sensible position step width with which to scan through the package
|
private |
spline object for interpolation of intensity profile