Produces the direct space coordinates (x) and Fourier space frequencies (f) and angular frequencies (k), corresponding to the Discrete Fourier Transform dft
of this package.
dftgrid(N, L, x0 = 0, k0 = -floor(N/2) * 2 * pi/L)
Returns a list with:
vector of direct space coordinates
vector of Fourier space coordinates (frequencies)
vector of Fourier space coordinates (angular frequencies)
spacing of x-values
spacing of f-values
spacing of k-values
input value of L
input value of N
number of divisions along one dimension used in direct and Fourier space
side-length (=period) of the data long one dimension
zero-point of x-coordinates (=0 in most applications)
zero-point of k-coordinates (=0 or -floor(N/2)*dk in most applications)
Danail Obreschkow