cupyx.scipy.signal.lfilter_zi#

cupyx.scipy.signal.lfilter_zi(b, a)[source]#

Construct initial conditions for lfilter for step response steady-state.

Compute an initial state zi for the lfilter function that corresponds to the steady state of the step response.

A typical use of this function is to set the initial state so that the output of the filter starts at the same value as the first element of the signal to be filtered.

Parameters
  • b (array_like (1-D)) – The IIR filter coefficients. See lfilter for more information.

  • a (array_like (1-D)) – The IIR filter coefficients. See lfilter for more information.

Returns

zi – The initial state for the filter.

Return type

1-D ndarray

See also

lfilter, lfiltic, filtfilt