functional_create_dct: DCT transformation matrix (functional)

View source: R/functional.R

functional_create_dctR Documentation

DCT transformation matrix (functional)

Description

Create a DCT transformation matrix with shape (n_mels, n_mfcc), normalized depending on norm. https://en.wikipedia.org/wiki/Discrete_cosine_transform

Usage

functional_create_dct(n_mfcc, n_mels, norm = NULL)

Arguments

n_mfcc

(int): Number of mfc coefficients to retain

n_mels

(int): Number of mel filterbanks

norm

(chr or NULL): Norm to use (either 'ortho' or NULL)

Value

tensor: The transformation matrix, to be right-multiplied to row-wise data of size (n_mels, n_mfcc).


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.