SignalUtils.InverseFilter Method

void InverseFilter(TVec Amplt, TVec Freq, TVec H, TSignalWindowType WindowType, Double WindowParam)

Computes FIR filter from specified frequency spectrum.

#NameTypeDescription
1AmpltTVecsource TVec
2FreqTVecsource TVec
3HTVecsource TVec
4WindowTypeTSignalWindowType
5WindowParamDoublescalar

Result: stored in self (calling object)

Remarks:

Amplt defines desired frequency spectrum (linear scale) and Freq defines the frequency at which the spectrum was sampled. Frequencies must be between 0 and 1 and have to include 0 and 1. H contains the impulse response upon completion. H.Length specifies the length of impulse response on input. The accuracy of filter matching the desired response greatly depends upon the length of the filter especially, when the desired response contains sharp or steep transitions. The function internally performs linear interpolation between points specified by Amplt and Freq vectors. The desired precision will be picked from Amplt.FloatPrecision.