15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SciPy Reference Guide, Release 0.8.dev<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 />

Returns<br />

ord – The lowest order for a Chebyshev type II filter that meets specs. :<br />

Wn – The Chebyshev natural frequency for :<br />

use with <strong>scipy</strong>.signal.cheby2 to give the filter.<br />

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

Elliptic (Cauer) digital and analog filter design.<br />

Description:<br />

Design an Nth order lowpass digital or analog elliptic filter and return the filter coefficients in (B,A)<br />

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

See also ellipord.<br />

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

Elliptic (Cauer) filter order selection.<br />

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

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 />

Returns<br />

ord – The lowest order for an Elliptic (Cauer) filter that meets specs. :<br />

Wn – The natural frequency for use with <strong>scipy</strong>.signal.ellip :<br />

to give the filter.<br />

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

Bessel digital and analog filter design.<br />

Description:<br />

Design an Nth order lowpass digital or analog Bessel filter and return the filter coefficients in (B,A)<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!