Open simonster opened 10 years ago
I think this looks good. Scipy has buttord
, ellipord
, cheb1ord
, cheb2ord
, and ellipord
implementations that we could use as a reference. Should we pass Butterworth
as a type instead of an instance of a type in this case? We could also just check for a defined order in digitalfilter
and use the corresponding function in case the instance of the filter prototype has no order defined.
Has any progress been made on filter order estimation? If not, I will have some time in a few weeks to make a start.
As far as I know nobody is working on this, so feel free to propose something :)
At present we design filters as:
or equivalent, i.e., we specify filters in terms of the cutoff frequency, order, and optional filter parameters (for Chebyshev and Elliptic filters). It would be nice if we could also specify filters in terms of the cutoff frequency, stopband frequency, passband ripple, and stopband attenuation. We could have something like:
Then for bandpass filters we'd pass
Ws
and (optionally)Rs
as tuples:And for bandstop filters, we'd specify the passband frequencies
Wp
instead ofWs
:This seems a bit complex, but I haven't thought of anything better yet.