Learn R Programming

fftw (version 1.0-9)

FFT: Calculate (inverse) DFT using the FFT method

Description

see title

Usage

FFT(x, ..., plan, inverse=FALSE)
IFFT(x, ..., plan, scale=TRUE)
DCT(x, ..., plan, type=1, inverse=FALSE)
IDCT(x, ..., plan, type=1, scale=TRUE)

Arguments

x

(complex) vector to process

...

ignored

plan

FFTW plan, can be missing

inverse

perform inverse transform, provided for fft compatibility.

scale

scale results

type

type of DCT

Author

Olaf Mersmann <olafm@statistik.uni-dortmund.de>

See Also

planFFT

Examples

Run this code
n <- 2**16
x <- rnorm(n)
p <- planFFT(n)
y <- FFT(x, plan=p)

Mod(x - IFFT(FFT(x)))

Run the code above in your browser using DataLab