SpectrumCalculatorPowerSpectrumOverlapped Method (Single, Int32, Double, Single, 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
Syntaxpublic bool PowerSpectrumOverlapped(
float[] samples,
int fftWindowLength,
double overlapPercent,
out float[] fftData,
out int processedSampleCount
)
Public Function PowerSpectrumOverlapped (
samples As Single(),
fftWindowLength As Integer,
overlapPercent As Double,
<OutAttribute> ByRef fftData As Single(),
<OutAttribute> ByRef processedSampleCount As Integer
) As Boolean
public:
bool PowerSpectrumOverlapped(
array<float>^ samples,
int fftWindowLength,
double overlapPercent,
[OutAttribute] array<float>^% fftData,
[OutAttribute] int% processedSampleCount
)
Parameters
- samples
- Type: SystemSingle
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: SystemSingle
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:
BooleanTrue if successful, else False.
See Also