par2is#

class diffsptk.ParcorCoefficientsToInverseSine(par_order)[source]#

This is a similar module to ParcorCoefficientsToLogAreaRatio().

Parameters:
par_orderint >= 0

The order of the PARCOR coefficients, \(M\).

forward(k)[source]#

Convert PARCOR to IS.

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

The PARCOR coefficients.

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

The inverse sine coefficients.

Examples

>>> k = diffsptk.ramp(1, 4) * 0.1
>>> par2is = diffsptk.ParcorCoefficientsToInverseSine(3)
>>> is2par = diffsptk.InverseSineToParcorCoefficients(3)
>>> k2 = is2par(par2is(k))
>>> k2
tensor([0.1000, 0.2000, 0.3000, 0.4000])
diffsptk.functional.par2is(k)[source]#

Convert PARCOR to IS.

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

The PARCOR coefficients.

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

The inverse sine coefficients.

See also

is2par par2lar