Overload List
| # | Signature | Description |
|---|---|---|
| 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. |
| 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. |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec * | |
| 2 | Freq0 | double | |
| 3 | Freq1 | double | |
| 4 | Result0 | TCplx & | |
| 5 | Result1 | TCplx & | |
| 6 | PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo | TGoertzPhaseCorrection |
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.
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec * | |
| 2 | Freq0 | double | |
| 3 | Freq1 | double | |
| 4 | Result0 | TCplx & | |
| 5 | Result1 | TCplx & | |
| 6 | SrcIndex | const int | |
| 7 | srcLen | int | |
| 8 | PhaseCorrection = TGoertzPhaseCorrection::gpcBonzanigo | TGoertzPhaseCorrection |
SrcIndex and srcLen define the sub-range of Src on which to compute the function.