15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

H(s) = —— = ———————————————-<br />

a(s) a[0] x**(N-1) + a[1] x**(N-2) + ... + a[N-1]<br />

r[0] r[1] r[-1]<br />

= ——– + ——– + ... + ——— + k(s)<br />

(s-p[0]) (s-p[1]) (s-p[-1])<br />

SciPy Reference Guide, Release 0.8.dev<br />

If there are any repeated roots (closer than tol), then the partial fraction expansion has terms like<br />

See Also:<br />

r[i] r[i+1] r[i+n-1]<br />

——– + ———– + ... + ———– (s-p[i]) (s-p[i])**2 (s-p[i])**n<br />

residue, poly, polyval, unique_roots<br />

3.13.5 Matlab-style IIR filter design<br />

butter(N, Wn[, btype, analog, output]) Butterworth digital and analog filter design.<br />

buttord(wp, ws, gpass, gstop[, analog]) Butterworth filter order selection.<br />

cheby1(N, rp, Wn[, btype, analog, output]) Chebyshev type I digital and analog filter design.<br />

cheb1ord(wp, ws, gpass, gstop[, analog]) Chebyshev type I filter order selection.<br />

cheby2(N, rs, Wn[, btype, analog, output]) Chebyshev type I digital and analog filter design.<br />

cheb2ord(wp, ws, gpass, gstop[, analog]) Chebyshev type II filter order selection.<br />

ellip(N, rp, rs, Wn[, btype, analog, output]) Elliptic (Cauer) digital and analog filter design.<br />

ellipord(wp, ws, gpass, gstop[, analog]) Elliptic (Cauer) filter order selection.<br />

bessel(N, Wn[, btype, analog, output]) Bessel digital and analog filter design.<br />

butter(N, Wn, btype=’low’, analog=0, output=’ba’)<br />

Butterworth digital and analog filter design.<br />

Description:<br />

Design an Nth order lowpass digital or analog Butterworth filter and return the filter coefficients in<br />

(B,A) or (Z,P,K) form.<br />

See also buttord.<br />

buttord(wp, ws, gpass, gstop, analog=0)<br />

Butterworth filter order selection.<br />

Return the order of the lowest order digital Butterworth filter that loses no more than gpass dB in the passband<br />

and has at least gstop dB attenuation in the stopband.<br />

Parameters<br />

wp, ws – Passband and stopband edge frequencies, normalized from 0 :<br />

to 1 (1 corresponds to pi radians / sample). For example:<br />

Lowpass: wp = 0.2, ws = 0.3 Highpass: wp = 0.3, ws = 0.2 Bandpass: wp =<br />

[0.2, 0.5], ws = [0.1, 0.6] Bandstop: wp = [0.1, 0.6], ws = [0.2, 0.5]<br />

gpass – The maximum loss in the passband (dB). :<br />

gstop – The minimum attenuation in the stopband (dB). :<br />

analog – Non-zero to design an analog filter (in this case wp and :<br />

ws are in radians / second).<br />

3.13. Signal processing (<strong>scipy</strong>.signal) 339

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!