SplinePackage#

class pyopenms.SplinePackage#

Bases: object

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.

See also: SplineInterpolatedPeaks

__init__(arg0: collections.abc.Sequence[float], arg1: collections.abc.Sequence[float], /) → None#
__init__(arg: pyopenms.SplinePackage, /) → None

Methods

__init__(arg0, arg1, /)

eval(pos)

Returns interpolated intensity position pos

getPosMax()

Returns the maximum position for which the spline fit is valid

getPosMin()

Returns the minimum position for which the spline fit is valid

getPosStepWidth()

Returns a sensible position step width for the package

isInPackage(pos)

Returns true if position in [posMin:posMax] interval else false

eval(pos: float) → float#

Returns interpolated intensity position pos

getPosMax() → float#

Returns the maximum position for which the spline fit is valid

getPosMin() → float#

Returns the minimum position for which the spline fit is valid

getPosStepWidth() → float#

Returns a sensible position step width for the package

isInPackage(pos: float) → bool#

Returns true if position in [posMin:posMax] interval else false