示例#1
0
 def __test_eps(etype=0, eps=0.0):
     pysptk.gcep(x, etype=etype, eps=eps)
示例#2
0
 def __test_gamma(gamma):
     pysptk.gcep(x, gamma=gamma)
示例#3
0
 def __test_itype(itype=0):
     pysptk.gcep(x, itype=itype)
示例#4
0
def test_gcep_failure():
    pysptk.gcep(np.ones(256), 40, 0.0)
示例#5
0
 def __test(order, gamma):
     gc = pysptk.gcep(x, order, gamma)
     assert np.all(np.isfinite(gc))
示例#6
0
def test_gcep_failure():
    pysptk.gcep(np.ones(256), 40, 0.0)
示例#7
0
 def __test_min_det(min_det):
     pysptk.gcep(x, min_det=min_det)
示例#8
0
 def __test_eps(etype=0, eps=0.0):
     pysptk.gcep(x, etype=etype, eps=eps)
示例#9
0
 def __test_min_det(min_det):
     pysptk.gcep(x, min_det=min_det)
示例#10
0
 def __test_itype(itype=0):
     pysptk.gcep(x, itype=itype)
示例#11
0
 def __test_gamma(gamma):
     pysptk.gcep(x, gamma=gamma)
示例#12
0
 def __test(order, gamma):
     gc = pysptk.gcep(x, order, gamma)
     assert np.all(np.isfinite(gc))
示例#13
0
def test_gcep(order, gamma):
    x = windowed_dummy_data(1024)
    gc = pysptk.gcep(x, order, gamma)
    assert np.all(np.isfinite(gc))
示例#14
0
def test_gcep_failure():
    with pytest.raises(RuntimeError):
        pysptk.gcep(np.ones(256), 40, 0.0)