def __test(order, alpha, gamma, fftlen): np.random.seed(98765) src = np.random.rand(order + 1) pysptk.mgclsp2sp(src, alpha, gamma, fftlen)
def __test(order, alpha, gamma, fftlen): np.random.seed(98765) src = np.random.rand(order + 1) dst = pysptk.mgclsp2sp(src, alpha, gamma, fftlen) assert len(dst) == (fftlen >> 1) + 1 assert np.all(np.isfinite(dst))
def __test(order, alpha, gamma, fftlen): np.random.seed(98765) src = np.random.rand(order + 1) dst = pysptk.mgclsp2sp(src, alpha, gamma, fftlen) assert len(dst) == (fftlen >> 1) + 1 assert np.all(np.isfinite(dst))