Post

Spectrum.Constructor

Creates a spectrum sized for the given number of data points.


Remarks

Count is set to the given size, and DataPoints holds that many empty points.


Syntax

SyntaxDescription
Spectrum(int count = 0)Creates a spectrum sized for the given number of data points.

Parameters

NameTypeDescription
countintThe number of data points.

Example

1
2
3
4
5
6
7
using Nova.Data;

Spectrum spectrum = new Spectrum(2);
spectrum.ScanNumber = 1;
spectrum.MsLevel = 1;
spectrum.DataPoints[0] = new SpecDataPoint(445.12, 10523.0);
spectrum.DataPoints[1] = new SpecDataPoint(522.77, 850.0);
This post is licensed under CC BY 4.0 by the author.

Trending Tags