def __test_eps(etype=0, eps=0.0): pysptk.gcep(x, etype=etype, eps=eps)
def __test_gamma(gamma): pysptk.gcep(x, gamma=gamma)
def __test_itype(itype=0): pysptk.gcep(x, itype=itype)
def test_gcep_failure(): pysptk.gcep(np.ones(256), 40, 0.0)
def __test(order, gamma): gc = pysptk.gcep(x, order, gamma) assert np.all(np.isfinite(gc))
def __test_min_det(min_det): pysptk.gcep(x, min_det=min_det)
def test_gcep(order, gamma): x = windowed_dummy_data(1024) gc = pysptk.gcep(x, order, gamma) assert np.all(np.isfinite(gc))
def test_gcep_failure(): with pytest.raises(RuntimeError): pysptk.gcep(np.ones(256), 40, 0.0)