lar2par#
- class diffsptk.LogAreaRatioToParcorCoefficients(par_order)[source]#
See this page for details.
- Parameters:
- par_orderint >= 0 [scalar]
Order of PARCOR, \(M\).
- forward(A)[source]#
Convert LAR to PARCOR.
- Parameters:
- ATensor [shape=(…, M+1)]
Log area ratio.
- Returns:
- kTensor [shape=(…, M+1)]
PARCOR coefficients.
Examples
>>> k = diffsptk.ramp(1, 4) * 0.1 >>> par2lar = diffsptk.ParcorCoefficientsToLogAreaRatio(3) >>> A = par2lar(k) >>> A tensor([0.1000, 0.4055, 0.6190, 0.8473])