### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Signal processing (`scipy.signal`) »

# scipy.signal.iirfilter

`scipy.signal.``iirfilter`(N, Wn, rp=None, rs=None, btype='band', analog=False, ftype='butter', output='ba')

  IIR digital and analog filter design given order and critical points.

  Design an Nth order digital or analog filter and return the filter coefficients in (B,A) (numerator, denominator) or (Z,P,K) form.

  Parameters : | N : int The order of the filter. Wn : array_like A scalar or length-2 sequence giving the critical frequencies. For digital filters, Wn is normalized from 0 to 1, where 1 is the Nyquist frequency, pi radians / sample. (Wn is thus in half-cycles / sample.) For analog filters, Wn is in radians / second. rp : float, optional For Chebyshev and elliptic filters, provides the maximum ripple in the passband. (dB) rs : float, optional For Chebyshev and elliptic filters, provides the minimum attenuation in the stop band. (dB) btype : {‘bandpass’, ‘lowpass’, ‘highpass’, ‘bandstop’}, optional The type of filter. Default is ‘bandpass’. analog : bool, optional When True, return an analog filter, otherwise a digital filter is returned. ftype : str, optional The type of IIR filter to design: elliptic : ‘ellip’ Butterworth : ‘butter’ Chebyshev I : ‘cheby1’ Chebyshev II: ‘cheby2’ Bessel : ‘bessel’ output : {‘ba’, ‘zpk’}, optional Type of output: numerator/denominator (‘ba’) or pole-zero (‘zpk’). Default is ‘ba’.

  See also

  `buttord`, `cheb1ord`, `cheb2ord`, `ellipord`

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Signal processing (`scipy.signal`) »