idst#

diffsptk.IDST#

alias of InverseDiscreteSineTransform

class diffsptk.InverseDiscreteSineTransform(dst_length)[source]#

This is the opposite module to DiscreteSineTransform().

Parameters:
dst_lengthint >= 1

DST length, \(L\).

forward(y)[source]#

Apply inverse DST to input.

Parameters:
yTensor [shape=(…, L)]

Input.

Returns:
outTensor [shape=(…, L)]

Inverse DST output.

Examples

>>> x = diffsptk.ramp(3)
>>> dst = diffsptk.DST(4)
>>> idst = diffsptk.IDST(4)
>>> x2 = idst(dst(x))
>>> x2
tensor([1.1921e-07, 1.0000e+00, 2.0000e+00, 3.0000e+00])
diffsptk.functional.idst(y)[source]#

Compute inverse DST.

Parameters:
yTensor [shape=(…, L)]

Input.

Returns:
outTensor [shape=(…, L)]

Inverse DST output.

See also

dst