|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FFT
FFT - Object oriented Fast Fourier Transfrom package. Adapted with minimal changes to routines from "Numerical Recipes", W.H.Press et al., Cambridge University Press (1986)
Field Summary | |
(package private) static int |
bothParts
|
protected Complex[] |
data
|
(package private) static int |
firstPart
|
(package private) static int |
inKSpace
|
(package private) static int |
inXSpace
|
protected boolean |
isTwoReals
|
protected int |
location
|
(package private) static int |
secondPart
|
int |
size
|
protected int |
toConfig
|
protected int |
toFourier
|
Constructor Summary | |
FFT(Complex[] arg1,
Complex[] arg2,
int location)
FFT object constructed out of TWO complex arrays of dimension power(n,2). |
|
FFT(Complex[] arg,
int location)
FFT object constructed from ONE complex array of dimension power(n,2). |
|
FFT(double[] arg1,
double[] arg2,
int location)
FFT object constructed out of TWO real arrays of dimension power(n,2). |
|
FFT(double[] arg,
int location)
FFT object constructed from ONE real array of dimension power(n,2). |
|
FFT(FFT fft)
FFT object constructed from another FFT object |
Method Summary | |
Complex[] |
aliasedConvolution(double units)
Computes the convolution of two REAL numbers stored in the real and imaginary part of the data[] array which has previously been initialized. |
Complex[] |
expandedConvolution(double units)
Computes the convolution of two REAL numbers stored in the real and imaginary part of the data[] array which has previously been initialized. |
protected void |
four1(Complex[] datac,
int nh,
int isign)
Fast Fourier transform of one complex array of dimension power(n,2). |
Complex[] |
getFromKSpace(int index,
double units)
Transform array to Fourier space. |
double[] |
getFromKSpacePart(int index,
double units)
Transform array to Fourier space and returns a real array depending on the argument. |
Complex[] |
getFromXSpace(double units)
Transform array to configuration space. |
double[] |
getFromXSpacePart(int index,
double units)
Transform array to configuration space. |
protected void |
twofft(Complex[] datac,
Complex[] fft1,
Complex[] fft2,
int n)
Fast Fourier transforms of two real arrays of dimension power(n,2). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int size
static final int inXSpace
static final int inKSpace
static final int bothParts
static final int firstPart
static final int secondPart
protected int location
protected Complex[] data
protected boolean isTwoReals
protected final int toFourier
protected final int toConfig
Constructor Detail |
public FFT(Complex[] arg, int location)
arg
- Complex arraylocation
- Either inXSpace or inKSpacepublic FFT(double[] arg, int location)
arg
- Real arraylocation
- Either inXSpace or inKSpacepublic FFT(Complex[] arg1, Complex[] arg2, int location)
arg1
- First datasetarg2
- Second datasetlocation
- Either inXSpace or inKSpacepublic FFT(double[] arg1, double[] arg2, int location)
arg1
- First datasetarg2
- Second datasetlocation
- Either inXSpace or inKSpacepublic FFT(FFT fft)
fft
- An FFT object to be duplicatedMethod Detail |
public Complex[] getFromKSpace(int index, double units)
index
- bothParts = complex number,
firstPart = real part or first transform if there is two,
secondPart = imaginary part or second transform.units
- to scale with for physical results
FFT
public double[] getFromKSpacePart(int index, double units)
index
- firstPart = real part or first transform if there is two,
secondPart = imaginary part or second transform.units
- to scale with for physical results
FFT
public Complex[] getFromXSpace(double units)
units
- to scale with for physical results
FFT
public double[] getFromXSpacePart(int index, double units)
index
- firstPart = real part or first transform,
secondPart = iminary part or second transform.units
- to scale with for physical results
FFT
public Complex[] aliasedConvolution(double units)
units
- to scale with for physical results
FFT
public Complex[] expandedConvolution(double units)
units
- to scale with for physical results
FFT
protected void twofft(Complex[] datac, Complex[] fft1, Complex[] fft2, int n)
protected void four1(Complex[] datac, int nh, int isign)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |