BinnedSpectrum#
- class pyopenms.BinnedSpectrum#
Bases:
object
Cython implementation of _BinnedSpectrum
Original C++ documentation is available here
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: BinnedSpectrum) None
Overload:
- __init__(self, in_0: MSSpectrum, size: float, unit_ppm: bool, spread: int, offset: float) None
Methods
Overload:
getBinIndex
(self, mz)Returns the bin index of a given m/z position
getBinIntensity
(self, mz)Returns the bin intensity at a given m/z position
getBinLowerMZ
(self, i)Returns the lower m/z of a bin given its index
getBinSize
(self)Returns the bin size
getBinSpread
(self)Returns the bin spread
getOffset
(self)Returns offset
getPrecursors
(self)isCompatible
(self, a, b)- getBinIndex(self, mz: float) int #
Returns the bin index of a given m/z position
- getBinIntensity(self, mz: float) float #
Returns the bin intensity at a given m/z position
- getBinLowerMZ(self, i: int) float #
Returns the lower m/z of a bin given its index
- getBinSize(self) float #
Returns the bin size
- getBinSpread(self) int #
Returns the bin spread
- getOffset(self) float #
Returns offset
- isCompatible(self, a: BinnedSpectrum, b: BinnedSpectrum) bool #