Arguments
- y
DCT coefficients
- n
The desired length of the idct
Value
A vector with the inverse DCT values
Examples
x <- seq(0,1, length = 10)
y <- 5 + x + (2 * (x^2)) + (-2 * (x^4))
dct_coefs <- dct(y)
recovered_y <- idct(dct_coefs)
plot(y, recovered_y)