TStoredSpectrumAnalyzer::ConvergeToMaximum Method

Overload List

#SignatureDescription
1double ConvergeToMaximum(double Freq);Searches for the closest peaks of the amplitude spectrum.
2void ConvergeToMaximum(TVec *Freqs, TVecInt *Center);Searches for the closest peaks of the amplitude spectrum.

Overload 1: double ConvergeToMaximum(double Freq);

Searches for the closest peaks of the amplitude spectrum.

#NameTypeDescription
1Freqdouble
Remarks:

Returns the frequency as the result.

Declared in Dew::Signal::TSpectrum · Dew.Signal/SignalTools.h · Cross-compiler

Overload 2: void ConvergeToMaximum(TVec *Freqs, TVecInt *Center);

Searches for the closest peaks of the amplitude spectrum.

#NameTypeDescription
1FreqsTVec *
2CenterTVecInt *
Remarks:

Stores the new peak frequency back in to the Freqs parameter. The center holds the central spectral line and is guaranteed not to be on the edge of the array. Even if the maximum value is in fact on the edge of the array both Freqs and Center will be moved one line inside to starting index 1 and final index Length-2.

Declared in Dew::Signal::TSpectrum · Dew.Signal/SignalTools.h · Cross-compiler