SignalUtils.FrequencyResponse Method

Double FrequencyResponse(TVec Num, TVec Den, TVec Response, Int32 ZeroPadding, Boolean Normalize, TSignalWindowType WindowType, Double WindowParam)

Compute the frequency response.

#NameTypeDescription
1NumTVecsource TVec
2DenTVecsource TVec
3ResponseTVecsource TVec
4ZeroPaddingInt32
5NormalizeBoolean
6WindowTypeTSignalWindowType
7WindowParamDoublescalar

Returns: Double

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