idst#
- diffsptk.IDST#
 alias of
InverseDiscreteSineTransform
- class diffsptk.InverseDiscreteSineTransform(dst_length, dst_type=2)[source]#
 This is the opposite module to
DiscreteSineTransform().- Parameters:
 - dst_lengthint >= 1
 DST length, \(L\).
- dst_typeint in [1, 4]
 DST type.
- 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, dst_type=2)[source]#
 Compute inverse DST.
- Parameters:
 - yTensor [shape=(…, L)]
 Input.
- dst_typeint in [1, 4]
 DST type.
- Returns:
 - outTensor [shape=(…, L)]
 Inverse DST output.
See also