ignorm#

class diffsptk.GeneralizedCepstrumInverseGainNormalization(cep_order, gamma=0, c=None)[source]#

See this page for details.

Parameters:
cep_orderint >= 0

Order of cepstrum, \(M\).

gammafloat in [-1, 1]

Gamma, \(\gamma\).

cint >= 1 or None

Number of stages.

forward(y)[source]#

Perform cepstrum inverse gain normalization.

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

Normalized generalized cepstrum.

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

Generalized cepstrum.

Examples

>>> x = diffsptk.ramp(1, 4)
>>> gnorm = diffsptk.GeneralizedCepstrumGainNormalization(3, c=2)
>>> ignorm = diffsptk.GeneralizedCepstrumInverseGainNormalization(3, c=2)
>>> x2 = ignorm(gnorm(x))
>>> x2
tensor([1., 2., 3., 4.])
diffsptk.functional.ignorm(y, gamma=0, c=None)[source]#

Perform cepstrum inverse gain normalization.

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

Normalized generalized cepstrum.

gammafloat in [-1, 1]

Gamma, \(\gamma\).

cint >= 1 or None

Number of stages.

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

Generalized cepstrum.

See also

gnorm mgc2mgc