class NumRu::GPhys -- Fast Fourier transformation and its applications

methods of NumRu::GPhys defined in gphys_fft.rb

methods

fft(backward=false)

Fast Fourier Transformation (FFT) by using (FFTW) ver 2.1.*. FFT is applied to all dimensions -- In future, this method will let you select any of the dimensions. Also, it will support FFTW3.

The transformation is complex. If the input data is not complex, it will be coerced to complex before transformation.

When the FT is forward, the result is normalized (i.e., divided by the data number), unlike the default behavior of FFTW.

Each coordinate is assumed to be equally spaced without checking. The new coordinate variables will be set equal to wavenumbers, derived as 2*PI/(length of the axis)*[0,1,2,..], where the length of the axis is derieved as (coord.val.max - coord.val.min)*(n+1)/n.

ARGUMENTS

RETURN VALUE