SignalUtils::FrequencyResponse Function

double FrequencyResponse(TVec *Num, TVec *Den, TVec *Response, int ZeroPadding = 2, bool Normalize = false, TSignalWindowType WindowType = TSignalWindowType::wtRectangular, double WindowParam = 40);

Compute the frequency response.

#NameTypeDescription
1NumTVec *
2DenTVec *
3ResponseTVec *
4ZeroPadding = 2int
5Normalize = falsebool
6WindowType = TSignalWindowType::wtRectangularTSignalWindowType
7WindowParam = 40double
Remarks:

Computes complex frequency response of the transfer function with Num in the numerator and Den in the denominator. The result is placed in the Response. WindowType specifies the window to be applied and WindowParam is window parameter required by some window types. If denominator is 1 pass nil for Den. The function returns the actual zero padding factor. Actual zero padding will be different from ZeroPadding, if Num and/or Den do not have power of two length. If Normalize is True the, frequency spectrum will be normalized to reflect the true amplitude.

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