Construct initial conditions for lfilter.
Given a linear filter (b, a) and initial conditions on the output y and the input x, return the inital conditions on the state vector zi which is used by lfilter to generate the output given the input.
Parameters : | b : array_like
a : array_like
y : array_like
x : array_like, optional
|
---|---|
Returns : | zi : ndarray
|
See also