Overload List
| # | Signature | Description |
|---|---|---|
| 1 | bool RemezImpulse(TVec *H, const DewArray<double> &W, double Ripple, TFilterType FilterType, double Gain = 1, double FS = 2, bool EnsureOdd = true); | Design an optimal equiripple FIR filter with Parks-McClellan algorithm. |
| 2 | bool RemezImpulse(TVec *H, const DewArray<double> &W, TFilterType FilterType, double Gain = 1, double FS = 2); | Design an optimal equiripple FIR filter with Parks-McClellan algorithm. |
Overload 1: bool RemezImpulse(TVec *H, const DewArray<double> &W, double Ripple, TFilterType FilterType, double Gain = 1, double FS = 2, bool EnsureOdd = true);
Design an optimal equiripple FIR filter with Parks-McClellan algorithm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | H | TVec * | H vector holds the impulse response on exit. |
| 2 | W | const DewArray<double> & | Array which can hold only 2 (highpass/lowpass definition) or 4(bandpass/bandstop definition) parameters. |
| 3 | Ripple | double | The required linear ripple of the passband and 20*Log10(Ripple) is the required attenuation of the stop band. |
| 4 | FilterType | TFilterType | Parameter defines the filter type. |
| 5 | Gain = 1 | double | Specifies the gain of the passband. |
| 6 | FS = 2 | double | The sampling frequency used to normalize transition band edges defined in the W array. Default value for FS is 2. |
| 7 | EnsureOdd = true | bool | Resulting filter length will be odd (not divisable by 2), if set to true. Default is true. |
The resulting impulse response is placed in H. Length of the filter is automatically estimated from the required Ripple and transition bandwidth. Function returns True, if the filter was succesfully designed. This does not guarantee that filter specifications have been meet.
This routine is a simplified version of Remez and can be used to design: Lowpass, bandpass, bandstop, highpass, differentiators and hilbert transformers.
Note:
RemezImpulse routine designes FIR filters about 10-20% shorter than the KaiserImpulse routine.
Overload 2: bool RemezImpulse(TVec *H, const DewArray<double> &W, TFilterType FilterType, double Gain = 1, double FS = 2);
Design an optimal equiripple FIR filter with Parks-McClellan algorithm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | H | TVec * | |
| 2 | W | const DewArray<double> & | |
| 3 | FilterType | TFilterType | |
| 4 | Gain = 1 | double | |
| 5 | FS = 2 | double |
Required length of the filter must be preset by setting H.Length. H vector holds the impulse response on exit.