Complete IIR digital and analog filter design.
Given passband and stopband frequencies and gains construct an analog or digital IIR filter of minimum order for a given basic type. Return the output in numerator, denominator (‘ba’) or pole-zero (‘zpk’) form.
Parameters: | wp, ws – Passband and stopband edge frequencies, normalized from 0 :
gpass – The maximum loss in the passband (dB). : gstop – The minimum attenuation in the stopband (dB). : analog – Non-zero to design an analog filter (in this case wp and :
ftype – The type of iir filter to design: :
output – Type of output: numerator/denominator (‘ba’) or pole-zero (‘zpk’) : |
---|---|
Returns: | b,a – Numerator and denominator of the iir filter. :
|