ize the IIR filter state
    if zi is None:
        out = signal.lfilter(B, A, X, axis=axis)
        zf = None
    else:
        out, zf = signal.lfilter(B, A, X, zi=zi, axis=axis)

    return out, zf</code></pre>
</details>
</dd>
<dt id="asrpy.asr_utils.ma_filter"><code class="name flex">
<span>def <span class="ident">ma_filter</span></span>(<span>N, X, Zi)</span>
</code></dt>
<dd>
<div class="desc"><p>Run a moving average filter over the data.</p>
<h2 id="parameters">Parameters</h2>
<dl>
<dt><strong><code