SignalUtils.InverseFilter Method

procedure InverseFilter(const Amplt: TVec; const Freq: TVec; const H: TVec; WindowType: TSignalWindowType; WindowParam: Double);

Computes FIR filter from specified frequency spectrum.

#NameTypeDescription
1AmpltTVec
2FreqTVec
3HTVec
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.