SignalUtils.GoertzTwo Method

Overload List

#SignatureDescription
1void GoertzTwo(TVec Src, Double Freq0, Double Freq1, ref TCplx Result0, ref TCplx Result1, TGoertzPhaseCorrection PhaseCorrection)The Discrete Fourier transformation (DFT) for given two frequencies.
2void GoertzTwo(TVec Src, Double Freq0, Double Freq1, ref TCplx Result0, ref TCplx Result1, Int32 SrcIndex, Int32 srcLen, TGoertzPhaseCorrection PhaseCorrection)The Discrete Fourier transformation (DFT) for given two frequencies.

Overload 1: void GoertzTwo(TVec Src, Double Freq0, Double Freq1, ref TCplx Result0, ref TCplx Result1, TGoertzPhaseCorrection PhaseCorrection)

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

#NameTypeDescription
1SrcTVecsource TVec
2Freq0Doublescalar
3Freq1Doublescalar
4Result0TCplx (ref)output
5Result1TCplx (ref)output
6PhaseCorrectionTGoertzPhaseCorrection

Result: stored in self (calling object)

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

Overload 2: void GoertzTwo(TVec Src, Double Freq0, Double Freq1, ref TCplx Result0, ref TCplx Result1, Int32 SrcIndex, Int32 srcLen, TGoertzPhaseCorrection PhaseCorrection)

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

#NameTypeDescription
1SrcTVecsource TVec
2Freq0Doublescalar
3Freq1Doublescalar
4Result0TCplx (ref)output
5Result1TCplx (ref)output
6SrcIndexInt32source start index
7srcLenInt32
8PhaseCorrectionTGoertzPhaseCorrection

Result: stored in self (calling object)

Remarks:

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