dct#
- diffsptk.DCT#
alias of
DiscreteCosineTransform
- class diffsptk.DiscreteCosineTransform(dct_length, dct_type=2)[source]#
See this page for details.
- Parameters:
- dct_lengthint >= 1
DCT length, \(L\).
- dct_typeint in [1, 4]
DCT type.
- diffsptk.functional.dct(x, dct_type=2)[source]#
Compute DCT.
- Parameters:
- xTensor [shape=(…, L)]
Input signal.
- dct_typeint in [1, 4]
DCT type.
- Returns:
- outTensor [shape=(…, L)]
DCT output.
See also