R/dct.R
dct_basis.Rd
The Discrete Cosine Transform basis functions
dct_basis(n, k)
The length of the basis.
The number of basis functions.
A \(n\times k\) matrix
This function will generate the DCT basis functions.
basis <- dct_basis(100, 5) matplot(basis, type = "l", lty = 1)