SignalUtils::GoertzTwo Function

Overload List

#SignatureDescription
1void GoertzTwo(TVec *Src, double Freq0, double Freq1, TCplx &Result0, TCplx &Result1, TGoertzPhaseCorrection PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo);The Discrete Fourier transformation (DFT) for given two frequencies.
2void GoertzTwo(TVec *Src, double Freq0, double Freq1, TCplx &Result0, TCplx &Result1, const int SrcIndex, int srcLen, TGoertzPhaseCorrection PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo);The Discrete Fourier transformation (DFT) for given two frequencies.

Overload 1: void GoertzTwo(TVec *Src, double Freq0, double Freq1, TCplx &Result0, TCplx &Result1, TGoertzPhaseCorrection PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo);

The Discrete Fourier transformation (DFT) for given two frequencies.

#NameTypeDescription
1SrcTVec *
2Freq0double
3Freq1double
4Result0TCplx &
5Result1TCplx &
6PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigoTGoertzPhaseCorrection
Remarks:

Calculates the Discrete Fourier transformation (DFT) for two given frequencies. Goertz returns the DFT at the two frequencies pass as a parameter. Each value of the DFT computed by the Goertzel algorithm takes 2N+2 real multiplications and 4N real additions. FFT computes the DFT with N*log2(N) of real multiplications and additions.

The Goertz method is faster, than direct DFT, if we need values at consecutively different frequencies. if at every call the Freq0 and Freq1 parameters are different. If the frequencies, at which we need to evalute the spectrum are fixed, then the direct DFT method is faster.

See Also: SignalUtils::Goertz
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler

Overload 2: void GoertzTwo(TVec *Src, double Freq0, double Freq1, TCplx &Result0, TCplx &Result1, const int SrcIndex, int srcLen, TGoertzPhaseCorrection PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo);

The Discrete Fourier transformation (DFT) for given two frequencies.

#NameTypeDescription
1SrcTVec *
2Freq0double
3Freq1double
4Result0TCplx &
5Result1TCplx &
6SrcIndexconst int
7srcLenint
8PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigoTGoertzPhaseCorrection
Remarks:

SrcIndex and srcLen define the sub-range of Src on which to compute the function.

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler