void InverseFilter(TVec *Amplt, TVec *Freq, TVec *H, TSignalWindowType WindowType = TSignalWindowType::wtBlackman, double WindowParam = 0);
Computes FIR filter from specified frequency spectrum.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Amplt | TVec * | |
| 2 | Freq | TVec * | |
| 3 | H | TVec * | |
| 4 | WindowType = TSignalWindowType::wtBlackman | TSignalWindowType | |
| 5 | WindowParam = 0 | double |
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.
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler