Post

TSpectrum<T>.Constructor

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


Remarks

Spectrum and SpectrumEx call this from their own constructors, which are the ones to use.


Syntax

SyntaxDescription
TSpectrum(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
using Nova.Data;

// Through Spectrum, which is TSpectrum<SpecDataPoint>.
Spectrum spectrum = new Spectrum(100);
Console.WriteLine(spectrum.Count);   // 100
This post is licensed under CC BY 4.0 by the author.

Trending Tags