Next: Output of Fourier Transforms
Up: Storage: What Goes Where
Previous: Fourier Transform Definitions and
Output of Fourier Transforms of Complex Data
The output of fftc1 is arranged as follows. The first half of the
output array represents the positive frequencies
. The index
then wraps around to
and begins ascending
from there. (Remember that
and
are the same
point.) Bearing in mind that the array contains alternating real and
imaginary components, the input and output arrays look like:
![\begin{displaymath}
Input array = I[2 N] =
\{Re(f_{x1}),Im(f_{x1}),Re(f_{x2}),...,Im(f_{xN})\}
\end{displaymath}](img31.png) |
(7) |
![\begin{displaymath}
Output array = O[2 N] =
\{Re(F_0),Im(F_0),Re(F_1),...,Re(F_{N/2}),Im(F_{N/2}),Re(F_{-N/2+1}),...,Im(F_{-1})\}
\end{displaymath}](img32.png) |
(8) |
Remember that
and
are actually the same array because the
output data are written over the original input array. The output of
fftcn is arranged analogously to fftc1. Each dimension goes from
to
and then from
up to
and the whole array
alternates between real and imaginary parts.
To do an inverse Fourier transform simply arrange the values
as
described here. If the array
was produced as output of the
FFTEASY routines then it is already arranged correctly to be put back
in for the inverse Fourier transform.
Next: Output of Fourier Transforms
Up: Storage: What Goes Where
Previous: Fourier Transform Definitions and
Go to The FFTEASY Home
Page
Go to Gary Felder's Home
Page
Send email to Gary at gfelder@email.smith.edu
This
documentation was generated on 2003-09-30