Exemple #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)
Exemple #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)
def test_ltcdf_invalid_delay_length():
    with pytest.raises(ValueError):
        pysptk.ltcdf(0.0, np.ones(10), np.ones(1))
Exemple #4
0
def test_ltcdf_invalid_delay_length():
    pysptk.ltcdf(0.0, np.ones(10), np.ones(1))