SplineInterpolatedPeaks#
- class pyopenms.SplineInterpolatedPeaks#
Bases:
objectData structure for spline interpolation of MS1 spectra and chromatograms
The data structure consists of a set of splines, each interpolating the MS1 spectrum (or chromatogram) in a certain m/z (or RT) range. Between these splines no raw data points exist and the intensity is identical to zero.
A spline on non-equi-distant input data is not well supported in regions without data points. Hence, a spline tends to swing wildly in these regions and cannot be used for reliable interpolation. We assume that in m/z (or RT) regions without data points, the spectrum (or chromatogram) is identical to zero.
See also: SplinePackage, MSSpectrum, MSChromatogram
- __init__(arg0: collections.abc.Sequence[float], arg1: collections.abc.Sequence[float], /) None#
- __init__(arg: pyopenms.MSSpectrum, /) None
- __init__(arg: pyopenms.MSChromatogram, /) None
Methods
__init__(arg0, arg1, /)getNavigator([scaling])Returns a Navigator over the splines; it keeps this object alive.
size()Bases:
objectIterator-like access to the splines of a SplineInterpolatedPeaks
Obtained from SplineInterpolatedPeaks.getNavigator(). It refers to the splines of that object, which is kept alive as long as the navigator exists.
Returns the spline-interpolated intensity at position pos (m/z or RT); 0 between splines
Returns the next sensible position after pos, i.e. pos plus the scaled average data point spacing of the current spline, or the start of the next spline
Returns a Navigator over the splines; it keeps this object alive. Raises if there are no splines
- getPosMax() float#
- getPosMin() float#
- size() int#