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.

jw -jw -jmw<br />

jw B(e) b[0] + b[1]e + .... + b[m]e<br />

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

jw -jw -jnw<br />

A(e) a[0] + a[2]e + .... + a[n]e<br />

Parameters<br />

b : ndarray<br />

numerator of a linear filter<br />

a : ndarray<br />

numerator of a linear filter<br />

worN : {None, int}, optional<br />

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

If None, then compute at 512 frequencies around the unit circle. If a single integer,<br />

the compute at that many frequencies. Otherwise, compute the response at frequencies<br />

given in worN<br />

whole : {0,1}, optional<br />

Returns<br />

w : ndarray<br />

Normally, frequencies are computed from 0 to pi (upper-half of unit-circle. If whole<br />

is non-zero compute frequencies from 0 to 2*pi.<br />

The frequencies at which h was computed.<br />

h : ndarray<br />

The frequency response.<br />

unique_roots(p, tol=0.001, rtype=’min’)<br />

Determine the unique roots and their multiplicities in two lists<br />

Inputs:<br />

p – The list of roots tol — The tolerance for two roots to be considered equal. rtype — How to<br />

determine the returned root from the close<br />

Outputs: (pout, mult)<br />

ones: ‘max’: pick the maximum<br />

‘min’: pick the minimum ‘avg’: average roots<br />

pout – The list of sorted roots mult – The multiplicity of each root<br />

residue(b, a, tol=0.001, rtype=’avg’)<br />

Compute partial-fraction expansion of b(s) / a(s).<br />

If M = len(b) and N = len(a)<br />

b(s) b[0] s**(M-1) + b[1] s**(M-2) + ... + b[M-1]<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!