def filt(self, x, coef): """Filter one sample using using ``lmadf`` Parameters ---------- x : float A input sample coef: array LMA filter coefficients (i.e. Cepstrum) Returns ------- y : float A filtered sample See Also -------- pysptk.sptk.lmadf """ return pysptk.lmadf(x, coef, self.pd, self.delay)
def test_lmadf_invalid_pade(): pysptk.lmadf(0.0, np.ones(10), 3, np.ones(1))
def test_lmadf_invalid_delay_length(): pysptk.lmadf(0.0, np.ones(10), 5, np.ones(1))