Click or drag to resize

SpectrumCalculatorPowerSpectrumOverlapped Method (Double, Int32, Double, Double, Int32)

LightningChart .NET Help
Calculates power spectrum, having all FFT data in absolute values. Overlaps moving FFT window until all data is processed. The count of output FFT data is same than input data.

Namespace:  Arction.Wpf.SignalProcessing
Assembly:  Arction.Wpf.SignalProcessing.SignalTools (in Arction.Wpf.SignalProcessing.SignalTools.dll) Version: 10.3.1
Syntax
public bool PowerSpectrumOverlapped(
	double[] samples,
	int fftWindowLength,
	double overlapPercent,
	out double[] fftData,
	out int processedSampleCount
)

Parameters

samples
Type: SystemDouble
Signal samples
fftWindowLength
Type: SystemInt32
Length of moving calculation window.
overlapPercent
Type: SystemDouble
Overlapping percent. Moving FFT window is shifted by this amount for next calculation round. Valid values are 0...99
fftData
Type: SystemDouble
Output FFT data. Length equals fftWindowLenght. If samples length is less than fftWindowLength, outputs samples length of data.
processedSampleCount
Type: SystemInt32
Processed sample count. It is possible that all samples are not processed from the end, if there's not enough data for last FFT window.

Return Value

Type: Boolean
True if successful, else False.
See Also