is2par#
- class diffsptk.InverseSineToParcorCoefficients(par_order: int)[source]#
This is a similar module to
LogAreaRatioToParcorCoefficients().- Parameters:
- par_orderint >= 0
The order of the PARCOR coefficients, \(M\).
- forward(s: Tensor) Tensor[source]#
Convert IS to PARCOR.
- Parameters:
- sTensor [shape=(…, M+1)]
The inverse sine coefficients.
- Returns:
- outTensor [shape=(…, M+1)]
The PARCOR coefficients.
Examples
>>> import diffsptk >>> is2par = diffsptk.InverseSineToParcorCoefficients(3) >>> s = diffsptk.ramp(1, 4) * 0.1 >>> k = is2par(s) >>> k tensor([0.1000, 0.3090, 0.4540, 0.5878])