Skip to contents

The Inverse DCT

Usage

idct(y, n = length(y))

Arguments

y

DCT coefficients

n

The desired length of the idct

Value

A vector with the inverse DCT values

Details

See the dct.

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)