Beispiel #1
0
    def filtt(self, x, coef):
        """Filter one sample using using ``poledft``

        Parameters
        ----------
        x : float
            A input sample

        coef: array
            LPC (with loggain)

        Returns
        -------
        y : float
            A filtered sample

        See Also
        --------
        pysptk.sptk.poledft
        """
        return pysptk.poledf(x, coef, self.delay)
Beispiel #2
0
    def filt(self, x, coef):
        """Filter one sample using using ``poledf``

        Parameters
        ----------
        x : float
            A input sample

        coef: array
            LPC (with loggain)

        Returns
        -------
        y : float
            A filtered sample

        See Also
        --------
        pysptk.sptk.poledf

        """

        return pysptk.poledf(x, coef, self.delay)
Beispiel #3
0
def test_poledf_invalid_delay_length():
    with pytest.raises(ValueError):
        pysptk.poledf(0.0, np.ones(10), np.ones(1))
Beispiel #4
0
def test_poledf_invalid_delay_length():
    pysptk.poledf(0.0, np.ones(10), np.ones(1))