rlevdur#

class diffsptk.ReverseLevinsonDurbin(lpc_order)[source]#

See this page for details.

Parameters:
lpc_orderint >= 0

Order of LPC coefficients, \(M\).

forward(a)[source]#

Solve a Yule-Walker linear system given LPC coefficients.

Parameters:
aTensor [shape=(…, M+1)]

Gain and LPC coefficients.

Returns:
outTensor [shape=(…, M+1)]

Autocorrelation.

Examples

>>> x = diffsptk.nrand(4)
>>> acorr = diffsptk.Autocorrelation(5, 2)
>>> levdur = diffsptk.LevinsonDurbin(2)
>>> rlevdur = diffsptk.ReverseLevinsonDurbin(2)
>>> r = acorr(x)
>>> r
tensor([ 5.8784,  0.8978, -2.0951])
>>> r2 = rlevdur(levdur(r))
>>> r2
tensor([ 5.8784,  0.8978, -2.0951])
diffsptk.functional.rlevdur(a)[source]#

Solve a Yule-Walker linear system given LPC coefficients.

Parameters:
aTensor [shape=(…, M+1)]

Gain and LPC coefficients.

Returns:
outTensor [shape=(…, M+1)]

Autocorrelation.

See also

acorr levdur