powered by
The Discrete Cosine Transform basis functions
dct_basis(n, k)
A \(n\times k\) matrix
The length of the basis.
The number of basis functions.
This function will generate the DCT basis functions.
basis <- dct_basis(100, 5) matplot(basis, type = "l", lty = 1)
Run the code above in your browser using DataLab