scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
lfiltic(b, a, y, x=None)

Given a linear filter (b, a) and initial conditions on the output y and the input x, return the initial conditions on the state vector zi which is used by lfilter to generate the output given the input.

Parameters

b : array_like

Linear filter term.

a : array_like

Linear filter term.

y : array_like

Initial conditions.

If N = len(a) - 1 , then y = {y[-1], y[-2], ..., y[-N]} .

If y is too short, it is padded with zeros.

x : array_like, optional

Initial conditions.

If M = len(b) - 1 , then x = {x[-1], x[-2], ..., x[-M]} .

If x is not given, its initial conditions are assumed zero.

If x is too short, it is padded with zeros.

Returns

zi : ndarray

The state vector zi = {z_0[-1], z_1[-1], ..., z_K-1[-1]} , where K = max(M, N) .

Construct initial conditions for lfilter given input and output vectors.

See Also

lfilter
lfilter_zi

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._signaltools.sosfilt scipy.signal._signaltools.lfilter scipy.signal._signaltools.lfilter_zi scipy.signal._signaltools.filtfilt

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/_signaltools.py#2060
type: <class 'function'>
Commit: