I have an array with N purely real points representing a spatial function:
[f_0, f_1, f_2, ... , f_{N-1}]
The function values are spaced in with a distance dx.
Therefore the Nyquist frequency is given by f_N = 1/(2*dx)
I calculate the Fourier transform of the array in C using FFTW2, with the function for purely 1d real inputs rfftw. This leads to only N/2 independent complex numbers, which are stored in a "half complex array":
[r_0, r_1, .... r_{N/2}, i_{N+1}/2-1 , ..., i_2, i_1], where r denotes the real and i the imaginary part.
Now I would like to know what the frequency domain of this array looks like. Is r_{N/2} the value at f_N or (f_N/)2?
I already have the code and it seems to work, i just don't know how to interpret the frequency axis.