SpectrumEx
A collection of extended data points acquired during ion analysis.
Remarks
This class is a convenient wrapper around TSpectrum
Implements
ISpectrum, IDisposable
Constructors
Syntax | Description |
---|---|
SpectrumEx (int count=0) | Initializes the spectrum with a default data point array size of count. |
Properties
Identifier | Type | Description |
---|---|---|
DataPoints | SpecDataPointEx[] | The array of m/z,intensity (and extended data) structures that comprise a spectrum. |
Count | int | The number of data points in the DataPoints array |
Methods
Method | Returns | Description |
---|---|---|
Deserialize (byte[] data) | void | Converts a byte array to the contents of a Spectrum. |
Dispose () | void | Disposes of the Spectrum. |
GetMz (double mz, double ppm = 0) | int | Returns the index of the DataPoints array whose m/z value falls within the ppm tolerance of the requested mz value. |
Resize (int sz) | int | Resizes, and reinitializes to zero, the DataPoints array of the Spectrum. |
Serialize () | byte[] | Packages the Spectrum into a byte array for storage or transmission. |
Example
This post is licensed under CC BY 4.0 by the author.