def filt(self, x, coef): """Filter one sample using ``glsadf`` Parameters ---------- x : float A input sample coef: array GLSA filter coefficients Returns ------- y : float A filtered sample See Also -------- pysptk.sptk.glsadf """ return pysptk.glsadf(x, coef, self.stage, self.delay)
def test_glsadf_invalid_stage(): with pytest.raises(ValueError): pysptk.glsadf(0.0, np.ones(10), 0, np.ones(1))
def test_glsadf_invalid_delay_length(): with pytest.raises(ValueError): pysptk.glsadf(0.0, np.ones(10), 1, np.ones(1))
def test_glsadf_invalid_stage(): pysptk.glsadf(0.0, np.ones(10), 0, np.ones(1))
def test_glsadf_invalid_delay_length(): pysptk.glsadf(0.0, np.ones(10), 1, np.ones(1))