Post

SpecDataPointEx.Constructor

Creates an extended data point, with every value defaulting to zero.


Syntax

SyntaxDescription
SpecDataPointEx(double mz = 0, double intensity = 0, double noise = 0, double baseline = 0, int charge = 0, double resolution = 0)Creates a data point, with every value defaulting to zero.

Parameters

NameTypeDescription
mzdoubleThe m/z value.
intensitydoubleThe intensity value.
noisedoubleThe noise level at the peak.
baselinedoubleThe baseline at the peak.
chargeintThe assigned charge state.
resolutiondoubleThe resolution at the peak.

Example

1
2
3
4
5
6
using Nova.Data;

SpecDataPointEx peak = new SpecDataPointEx(445.12, 10523.0, 150.0, 0, 2, 120000);

// Named arguments set only what is needed.
SpecDataPointEx simple = new SpecDataPointEx(mz: 445.12, intensity: 10523.0);
This post is licensed under CC BY 4.0 by the author.

Trending Tags