pysptk.sptk.agcep

pysptk.sptk.agcep(x, c, stage=1, lambda_coef=0.98, step=0.1, tau=0.9, eps=1e-06)

Adaptive generalized cepstral analysis

Parameters:

x : float

A input sample

c : array, shape(order + 1), optional

Cepstrum. The result is stored in-place.

stage : int, optional

-1 / gamma. Default is 1.

lambda_coef : float, optional

Leakage factor. Default is 0.98.

step : float, optional

Step size. Default is 0.1.

tau : float, optional

Momentum constant. Default is 0.9.

eps : float, optional

Minimum value for epsilon. Default is 1.0e-6.

Returns:

prederr : float

Prediction error

Raises:

ValueError

if invalid number of stage is specified