Performs the Fast Fourier Transform of an array.
fft(z, inverse = FALSE) mvfft(z, inverse = FALSE)
- a real or complex array containing the values to be transformed.
TRUE, the unnormalized inverse transform is computed (the inverse has a
+in the exponent of e, but here, we do not divide by
z is a vector, the value computed and returned by
fft is the unnormalized univariate Fourier transform of the sequence of values in
z contains an array,
fft computes and returns the multivariate (spatial) transform. If
TRUE, the (unnormalized) inverse Fourier transform is returned, i.e., if
y <- fft(z), then
fft(y, inverse = TRUE) / length(y).
mvfft takes a real or complex matrix as argument, and returns a similar shaped matrix, but with each column replaced by its discrete Fourier transform. This is useful for analyzing vector-valued series.
The FFT is fastest when the length of the series being transformed is highly composite (i.e., has many factors). If this is not the case, the transform may take a long time to compute and will use a large amount of memory.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Singleton, R. C. (1979) Mixed Radix Fast Fourier Transforms, in Programs for Digital Signal Processing, IEEE Digital Signal Processing Committee eds. IEEE Press.
Documentation reproduced from R 3.0.2. License: GPL-2.