IIRFilters::EllipticOrder Function

int EllipticOrder(const DewArray<double> &BEdges, double PassRipple, double StopRipple, TFilterType FilterType, DewArray<double> &CutoffFreq, bool Analog = false);

Estimate the minimum elliptic (Cauer) filter order that meets a transition-band specification, and fill CutoffFreq with the passband-edge cutoff(s). Using the complete elliptic integral K( * ) and the selectivity k=omega_p/omega_s, discrimination k_1=sqrt((10^(R_p/10)-1)/(10^(R_s/10)-1)), the order is n=\lceil(K(k) K(sqrt(1-k_1^2)))/(K(sqrt(1-k^2)) K(k_1))\rceil, capped at MaxIirOrder (=50). For a given spec the elliptic order is the smallest of the five families. Domain: digital edges in (0,1)(0,1) (Analog=False) or analog rad/s (Analog=True); CutoffFreq length is half BEdges length and matches FilterType.

#NameTypeDescription
1BEdgesconst DewArray<double> &
2PassRippledouble
3StopRippledouble
4FilterTypeTFilterType
5CutoffFreqDewArray<double> &
6Analog = falsebool
Remarks:

Bedg array must contain the band edges of the transition region(s) sorted in ascending order. PassRipple defines the ripple of the passband and StopRipple defines the ripple of the stopband. The length of the CutoffFreq array must be equal to one half of the length of the BEdg array and must match the specified FilterType. The routine returns the estimated order as a result and fill's the CutoffFreq array. This array can then be passed to the EllipticFilter routine.

See Also: IIRFilters::EllipticFilter
Declared in Dew::Signal::Units::IIRFilters · Dew.Signal/Units.IIrFilters.h · Cross-compiler