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.

output – filtered signal.<br />

symiirorder2()<br />

symiirorder2(input, r, omega {, precision}) -> output<br />

Description:<br />

Inputs:<br />

Output:<br />

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

Implement a smoothing IIR filter with mirror-symmetric boundary conditions using a cascade of<br />

second-order sections. The second section uses a reversed sequence. This implements the following<br />

transfer function:<br />

cs^2<br />

H(z) = —————————————<br />

(1 - a2/z - a3/z^2) (1 - a2 z - a3 z^2 )<br />

where a2 = (2 r cos omega)<br />

a3 = - r^2 cs = 1 - 2 r cos omega + r^2<br />

input – the input signal. r, omega – parameters in the transfer function. precision – specifies the<br />

precision for calculating initial conditions<br />

of the recursive filter based on mirror-symmetric input.<br />

output – filtered signal.<br />

lfilter(b, a, x, axis=-1, zi=None)<br />

Filter data along one-dimension with an IIR or FIR filter.<br />

Filter a data sequence, x, using a digital filter. This works for many fundamental data types (including Object<br />

type). The filter is a direct form II transposed implementation of the standard difference equation (see Notes).<br />

Parameters<br />

b : array_like<br />

The numerator coefficient vector in a 1-D sequence.<br />

a : array_like<br />

The denominator coefficient vector in a 1-D sequence. If a[0] is not 1, then both a<br />

and b are normalized by a[0].<br />

x : array_like<br />

axis : int<br />

An N-dimensional input array.<br />

The axis of the input data array along which to apply the linear filter. The filter is<br />

applied to each subarray along this axis (Default = -1)<br />

zi : array_like (optional)<br />

Returns<br />

y : array<br />

Initial conditions for the filter delays. It is a vector (or array of vectors for an Ndimensional<br />

input) of length max(len(a),len(b))-1. If zi=None or is not given then<br />

initial rest is assumed. SEE signal.lfiltic for more information.<br />

The output of the digital filter.<br />

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

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

Saved successfully!

Ooh no, something went wrong!