Version 1.2 (June 2013)
 All Classes Namespaces Files Functions Variables Pages
Static Public Member Functions | List of all members
utils.FftOperations Class Reference

Tool for performing fast fourier transform (FFT) on grids of Complex and real numbers. More...

Static Public Member Functions

static Complex[] transform (double[] originalData)
 Transform a 1D array of real numbers into an array of complex numbers. More...
 
static Complex[][] transform (double[][] originalData)
 Transform a 2D array of real numbers into an array of complex numbers. More...
 
static Complex[][][] transform (double[][][] originalData)
 Transform a 3D array of real numbers into an array of complex numbers. More...
 
static Complex[] transform (Complex[] originalData)
 Transform a 1D array of Complex numbers into an array of complex numbers. More...
 
static Complex[][] transform (Complex[][] originalData)
 Transform a 2D array of Complex numbers into an array of complex numbers. More...
 
static Complex[][][] transform (Complex[][][] originalData)
 Transform a 3D array of Complex numbers into an array of complex numbers. More...
 
static Complex[] inverse (Complex[] originalData)
 Inverse transform a 1D array of complex numbers. More...
 
static Complex[][] inverse (Complex[][] originalData)
 Inverse transform a 2D array of complex numbers. More...
 
static Complex[][][] inverse (Complex[][][] originalData)
 Inverse transform a 3D array of complex numbers. More...
 
static double[] fft (double[] data, int isign)
 Perform a Fast Fourier Transformation on 1D data array. More...
 
static double[] fftn (double[] data, int ndim, int[] nn, int isign)
 Perform a Fast Fourier Transformation on n-D data array . More...
 
static boolean checkPowerOfTwo (int n)
 Checks whether n is an integer power of 2. More...
 

Detailed Description

Tool for performing fast fourier transform (FFT) on grids of Complex and real numbers.

Tool for performing fast fourier transform (FFT) on grids of Complex and real numbers. Algorithms for FFT based on "Numerical Recipes in C, 2nd ed."

Author
Andreas Dotsch (andre.nosp@m.as.d.nosp@m.oetsc.nosp@m.h@he.nosp@m.lmhol.nosp@m.tz-h.nosp@m.zi.de), Helmholtz Centre for Infection Research (Germany)

Member Function Documentation

static boolean utils.FftOperations.checkPowerOfTwo ( int  n)
static

Checks whether n is an integer power of 2.

Checks whether n is an integer power of 2

Parameters
nInteger to check
Returns
Boolean noting whether this number is a power of 2
static double [] utils.FftOperations.fft ( double[]  data,
int  isign 
)
static

Perform a Fast Fourier Transformation on 1D data array.

Perform a Fast Fourier Transformation on 1D data array.

Parameters
datadata array to perform FFT on
isign1 for regular FFT, -1 for inverse (result is NOT normalized by N!)
Returns
Double array of transformed data
static double [] utils.FftOperations.fftn ( double[]  data,
int  ndim,
int[]  nn,
int  isign 
)
static

Perform a Fast Fourier Transformation on n-D data array .

Perform a Fast Fourier Transformation on n-D data array .

Parameters
datadata array to perform FFT on
ndimnumber of dimensions
nnsize of the array data in all directions
isign1 for regular FFT, -1 for inverse (result is NOT normalized by N!)
Returns
Double array of the data transformed to a 1D array of doubles
static Complex [] utils.FftOperations.inverse ( Complex[]  originalData)
static

Inverse transform a 1D array of complex numbers.

Inverse transform a 1D array of complex numbers

Parameters
originalDataData of complex numbers to be transformed
Returns
Inverse of the original data array
static Complex [][] utils.FftOperations.inverse ( Complex  originalData[][])
static

Inverse transform a 2D array of complex numbers.

Inverse transform a 2D array of complex numbers

Parameters
originalDataData of complex numbers to be transformed
Returns
Inverse of the original data array
static Complex [][][] utils.FftOperations.inverse ( Complex  originalData[][][])
static

Inverse transform a 3D array of complex numbers.

Inverse transform a 3D array of complex numbers

Parameters
originalDataData of complex numbers to be transformed
Returns
Inverse of the original data array
static Complex [] utils.FftOperations.transform ( double[]  originalData)
static

Transform a 1D array of real numbers into an array of complex numbers.

Transform a 1D array of real numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data
static Complex [][] utils.FftOperations.transform ( double  originalData[][])
static

Transform a 2D array of real numbers into an array of complex numbers.

Transform a 2D array of real numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data
static Complex [][][] utils.FftOperations.transform ( double  originalData[][][])
static

Transform a 3D array of real numbers into an array of complex numbers.

Transform a 3D array of real numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data
static Complex [] utils.FftOperations.transform ( Complex[]  originalData)
static

Transform a 1D array of Complex numbers into an array of complex numbers.

Transform a 1D array of Complex numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data
static Complex [][] utils.FftOperations.transform ( Complex  originalData[][])
static

Transform a 2D array of Complex numbers into an array of complex numbers.

Transform a 2D array of Complex numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data
static Complex [][][] utils.FftOperations.transform ( Complex  originalData[][][])
static

Transform a 3D array of Complex numbers into an array of complex numbers.

Transform a 3D array of Complex numbers into an array of complex numbers

Parameters
originalDataOriginal data
Returns
Array of complex numbers representing this data

The documentation for this class was generated from the following file: