|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfftw.FFTW
jfftw.FFTWEngine
jfftw.FFTWRealToComplexEngine
public class FFTWRealToComplexEngine
Class to for a (forward), Real to hermition complex FFT engine with a real input buffer and hermition complex output buffer. Note since there are in gerenal of diffent size, then they callon be the same array.
Field Summary | |
---|---|
protected FFTWReal |
fft
|
Fields inherited from class jfftw.FFTWEngine |
---|
depth, height, inputBuffer, inputWidth, outputBuffer, outputWidth, plan |
Fields inherited from class jfftw.FFTW |
---|
BACKWARD, errorStream, ESTIMATE, EXHAUSTIVE, FORWARD, FOURIER, loaded, PATIENT, planFlag, REAL, throwLoadException, version |
Constructor Summary | |
---|---|
FFTWRealToComplexEngine(int w)
Form a one-dimensional RealToComplex Engine whithe input and and output baffer are aoutomatically created. |
|
FFTWRealToComplexEngine(int w,
double[] in,
double[] out)
Form a one-dimensional RealToComplex Engine specified input and output buffers. |
|
FFTWRealToComplexEngine(int w,
int h)
Form a two-dimensional RealToComplex Engine whithe input and and output baffer are aoutomatically created. |
|
FFTWRealToComplexEngine(int w,
int h,
double[] in,
double[] out)
Form a two-dimensional RealToComplex Engine specified input and output buffers. |
|
FFTWRealToComplexEngine(int w,
int h,
int d)
Form a three-dimensional RealToComplex Engine whithe input and and output baffer are aoutomatically created. |
|
FFTWRealToComplexEngine(int w,
int h,
int d,
double[] in,
double[] out)
Form a three-dimensional RealToComplex Engine specified input and output buffers. |
Method Summary | |
---|---|
Complex |
getInputComplex(int i)
Method to get an element of the Real input buffer as a Complex |
double |
getInputReal(int i)
Method to get an input element as a real |
Complex |
getOutputComplex(int i)
Method to get an element of the Complex output buffer as a Complex |
void |
makePlan()
Method to make the current plan using the current defaults |
void |
setInputComplex(int i,
double a,
double b)
Method to set an input element with a Complex, but since the input is real only a warning message is generated |
void |
setInputReal(int i,
double a)
Method to set the an input buffer element with a double |
void |
setOutputComplex(int i,
double a,
double b)
Methed to set the an element in the outpout Complex array with two doubles. |
Methods inherited from class jfftw.FFTW |
---|
addPlanFlag, clearWisdom, exportWisdom, getPlanFlag, getVersion, getWisdom, loadWisdom, loadWisdom, loadWisdomFromString, readWisdom, readWisdom, setErrorStream, setPlanFlag, setSystemWisdom, writeWisdom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FFTWReal fft
Constructor Detail |
---|
public FFTWRealToComplexEngine(int w, int h, int d, double[] in, double[] out)
w
- the widthh
- the heightd
- the depthin
- the input bufferout
- the output buffer
NullPointerException
- if array null
IllegalArgumentException
- if array lengths
do not match size.public FFTWRealToComplexEngine(int w, int h, double[] in, double[] out)
w
- the widthh
- the heightin
- the input bufferout
- the output buffer
NullPointerException
- if array null
IllegalArgumentException
- if array lengths
do not match size.public FFTWRealToComplexEngine(int w, double[] in, double[] out)
w
- the widthin
- the input bufferout
- the output buffer
NullPointerException
- if array null
IllegalArgumentException
- if array lengths
do not match size.public FFTWRealToComplexEngine(int w, int h, int d)
w
- the widthh
- the heightd
- the depthpublic FFTWRealToComplexEngine(int w, int h)
w
- the widthh
- the heightpublic FFTWRealToComplexEngine(int w)
w
- the widthMethod Detail |
---|
public void setInputReal(int i, double a)
setInputReal
in class FFTWEngine
i
- the element indexa
- the valuepublic void setInputComplex(int i, double a, double b)
setInputComplex
in class FFTWEngine
i
- the element indexa
- the real valueb
- the imaginary valuepublic double getInputReal(int i)
getInputReal
in class FFTWEngine
i
- the element index
double
the element valuepublic Complex getInputComplex(int i)
getInputComplex
in class FFTWEngine
i
- the element index
Complex
specifed input element.public void setOutputComplex(int i, double a, double b)
setOutputComplex
in class FFTWEngine
i
- the element indexa
- the real valueb
- the imaginary valuepublic Complex getOutputComplex(int i)
getOutputComplex
in class FFTWEngine
i
- the element index
Complexl
the elemtn valuepublic void makePlan()
FFTWEngine
makePlan
in class FFTWEngine
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |