def dsclansNTF(x, order, rmax, Hz):
    x = x.squeeze()
    Hz = carray(Hz)
    Hz = Hz.reshape((-1,))
    Hp = np.zeros((1,), dtype=np.complex128)
    odd = (order % 2 == 1)
    if odd:
        s = -x[0]**2.
        Hp[0] = rmax*(1. + s)/(1. - s)

    for i in range(0+1*odd, order, 2):
        Hp = np.hstack((Hp, np.zeros((2,))))
        zeta = x[i]**2
        wn = x[i + 1]**2
        s = np.roots(np.array((1, 2*zeta*wn, wn**2)))
        Hp[i:i+2] = rmax*(1. + s)/(1. - s)

    H = (Hz, Hp, 1.)
    return H
Conversion of clans parameters into a NTF.
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/_dsclansNTF.py/dsclansNTF