BinnedSpectrum#

class pyopenms.BinnedSpectrum#

Bases: object

This is a binned representation of a PeakSpectrum

__init__() → None#
__init__(arg0: pyopenms.MSSpectrum, arg1: float, arg2: bool, arg3: int, arg4: float, /) → None
__init__(arg: pyopenms.BinnedSpectrum, /) → None

Methods

__init__()

getBinIndex(mz)

Returns the bin index of a given m/z position

getBinIntensity(mz)

Returns the bin intensity at a given m/z position

getBinLowerMZ(i)

Returns the lower m/z of a bin given its index

getBinSize()

Returns the bin size

getBinSpread()

Returns the bin spread

getOffset()

Returns offset

getPrecursors()

isCompatible(a, b)

getBinIndex(mz: float) → int#

Returns the bin index of a given m/z position

getBinIntensity(mz: float) → float#

Returns the bin intensity at a given m/z position

getBinLowerMZ(i: int) → float#

Returns the lower m/z of a bin given its index

getBinSize() → float#

Returns the bin size

getBinSpread() → int#

Returns the bin spread

getOffset() → float#

Returns offset

getPrecursors() → list[pyopenms.Precursor]#
static isCompatible(a: pyopenms.BinnedSpectrum, b: pyopenms.BinnedSpectrum) → bool#