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

>>> s = diffsptk.ramp(1, 4) * 0.1
>>> is2par = diffsptk.InverseSineToParcorCoefficients(3)
>>> k = is2par(s)
>>> k
tensor([0.1000, 0.3090, 0.4540, 0.5878])
diffsptk.functional.is2par(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.

See also

par2is lar2par