示例#1
0
    def filt(self, x, coef):
        """Filter one sample using using ``ltcdf``

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

        coef: array
            PARCOR coefficients (with loggain)

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

        See Also
        --------
        pysptk.sptk.ltcdf

        """

        return pysptk.ltcdf(x, coef, self.delay)
示例#2
0
    def filt(self, x, coef):
        """Filter one sample using using ``ltcdf``

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

        coef: array
            PARCOR coefficients (with loggain)

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

        See Also
        --------
        pysptk.sptk.ltcdf

        """

        return pysptk.ltcdf(x, coef, self.delay)
示例#3
0
def test_ltcdf_invalid_delay_length():
    with pytest.raises(ValueError):
        pysptk.ltcdf(0.0, np.ones(10), np.ones(1))
示例#4
0
def test_ltcdf_invalid_delay_length():
    pysptk.ltcdf(0.0, np.ones(10), np.ones(1))