JuliaDSP / DSP.jl

Filter design, periodograms, window functions, and other digital signal processing functionality
https://docs.juliadsp.org/stable/contents/
Other
381 stars 109 forks source link

Filter order #429

Closed vitorn closed 1 year ago

vitorn commented 3 years ago

Is there a function to compute the required order for a Butterworth, Chebyshev or Kauer filter? How about for min-max (Remez, Parks-McClellan) FIR filters? I only found kaiserord, for Kaiser window FIR filters.

jsmithnh09 commented 2 years ago

The Butterworth filter approximation is something I'll give a shot at! I think I have some suitable code for the lowpass and highpass cases, but I'll need to work out the bandpass and bandstop cases since those are a little trickier. I'm putting together test cases for these as well, based on the examples on Mathworks' site.

jsmithnh09 commented 2 years ago

I believe the PR in #453 addresses the majority of the filter design cases here, I think the only outstanding one is parameter estimation for Parks-McClellan FIR filters.

jsmithnh09 commented 1 year ago

@vitorn We've added the filter order estimation schemes you requested, hopefully this closes out your issue!

martinholters commented 1 year ago

Indeed, this seems fixed now. Comment if you disagree.