dftgrid | R Documentation |
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)
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) |
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 |
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.