Overload List
Overload 1: double EllipticFilter(int Order, double PassRipple, double StopRipple, const DewArray<double> &CutoffFreq, TFilterType FilterType, bool Analog, TVec *z, TVec *p, double &k, TIirFrequencyTransform IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog);
Design Elliptic IIR filter.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Order | int | |
| 2 | PassRipple | double | |
| 3 | StopRipple | double | |
| 4 | CutoffFreq | const DewArray<double> & | |
| 5 | FilterType | TFilterType | |
| 6 | Analog | bool | |
| 7 | z | TVec * | |
| 8 | p | TVec * | |
| 9 | k | double & | |
| 10 | IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog | TIirFrequencyTransform |
Design Elliptic filter of Order with CutoffFreq frequencies and of FilterType type. Set Analog to True, to request an analog filter design in s-plane or set it to false to obtain a digital filter design in z-plane. CutoffFreq must be in range between 0 and 1 (Sampling frequency = 2) in case of a digital filter design.
IIrFrequencyTransform specifies when and how will the frequency band transformation be applied. PassRipple defines the passband ripple in dB and StopRipple defines the stopband ripple in dB. The resulting transfer function is returned in the zero-pole form, with z,p,k variables.
Overload 2: double EllipticFilter(int Order, double PassRipple, double StopRipple, const DewArray<double> &CutoffFreq, TFilterType FilterType, bool Analog, TVec *Num, TVec *Den, TIirFrequencyTransform IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog);
The resulting transfer function is returned in the numerator/denumerator form with num and den.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Order | int | |
| 2 | PassRipple | double | |
| 3 | StopRipple | double | |
| 4 | CutoffFreq | const DewArray<double> & | |
| 5 | FilterType | TFilterType | |
| 6 | Analog | bool | |
| 7 | Num | TVec * | |
| 8 | Den | TVec * | |
| 9 | IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog | TIirFrequencyTransform |
Overload 3: double EllipticFilter(int Order, double PassRipple, double StopRipple, const DewArray<double> &CutoffFreq, TFilterType FilterType, bool Analog, TVec *sos, TIirFrequencyTransform IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog);
The resulting transfer function is returned in the second order section form stored in the sos variable.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Order | int | |
| 2 | PassRipple | double | |
| 3 | StopRipple | double | |
| 4 | CutoffFreq | const DewArray<double> & | |
| 5 | FilterType | TFilterType | |
| 6 | Analog | bool | |
| 7 | sos | TVec * | |
| 8 | IirFrequencyTransform = TIirFrequencyTransform::ftStateSpaceAnalog | TIirFrequencyTransform |
The sos variable can be passed directly to the IirInitBQ digital filter initialization routine. Second order section form delivers substantially higher numerical stability and range than filtering with num/den form used by the IirInit function.
Overload 4: double EllipticFilter(int Order, double PassRipple, double StopRipple, const DewArray<double> &CutoffFreq, TFilterType FilterType, bool Analog, TMtx *A, TVec *B, TVec *C, double &d);
The resulting transfer function is returned in the state-space form with A,B,C,D variables.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Order | int | |
| 2 | PassRipple | double | |
| 3 | StopRipple | double | |
| 4 | CutoffFreq | const DewArray<double> & | |
| 5 | FilterType | TFilterType | |
| 6 | Analog | bool | |
| 7 | A | TMtx * | |
| 8 | B | TVec * | |
| 9 | C | TVec * | |
| 10 | d | double & |