="python">def numf(h, a, nb):
    &#34;&#34;&#34;Get numerator B given impulse-response h of B/A and denominator A.&#34;&#34;&#34;
    nh = np.max(h.size)
    xn = np.concatenate((1, np.zeros((1, nh - 1))), axis=None)
    impr = signal.lfilter(np.array([1.0]), a, xn)

    b = np.linalg.lstsq(
        toeplitz(impr, np.concatenate((1, np.zeros((1, nb))), axis=None)),
        h.T, rcond=None)[0].T

    return b</code></pre>
</details>
</dd>
<dt id="asrpy.asr_utils.denf"><code class="name flex">
<span>def <spa