dftgrid {cooltools}R Documentation

Produce coordinates for Discrete Fourier Transform

Description

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.

Usage

dftgrid(N, L, x0 = 0, k0 = -floor(N/2) * 2 * pi/L)

Arguments

N

number of divisions along one dimension used in direct and Fourier space

L

side-length (=period) of the data long one dimension

x0

zero-point of x-coordinates (=0 in most applications)

k0

zero-point of k-coordinates (=0 or -floor(N/2)*dk in most applications)

Value

Returns a list with:

x

vector of direct space coordinates

f

vector of Fourier space coordinates (frequencies)

k

vector of Fourier space coordinates (angular frequencies)

dx

spacing of x-values

df

spacing of f-values

dk

spacing of k-values

L

input value of L

N

input value of N

Author(s)

Danail Obreschkow


[Package cooltools version 2.4 Index]