|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectfftManager.FastFFT
public class FastFFT
FFT Wrapper which uses the edu.emory.mathcs.jtransforms.fft
transforms library for the actual FFT calculations.
These are simple wrappers to use the transofrms library with
standard PAMGUARD transform classes.
| Field Summary | |
|---|---|
private edu.emory.mathcs.jtransforms.fft.DoubleFFT_1D |
doubleFFT_1D
|
private edu.emory.mathcs.jtransforms.fft.DoubleFFT_2D |
doubleFFT_2D
|
private double[] |
dummyX
Dummy data for input to the doubleFFT_1D function |
private int |
transformSize
|
| Constructor Summary | |
|---|---|
FastFFT()
|
|
| Method Summary | |
|---|---|
void |
fft(Complex[] x)
In place fft of complex data. |
void |
fft(Complex[][] x)
In lace FFT of a 2D complex array. |
void |
ifft(Complex[] x,
int m)
Inverse FFT for Complex data. |
static int |
log2(int num)
|
static int |
nextBinaryExp(int sourceNumber)
Finds the next highest binary exponential of the input integer. |
(package private) double[][] |
packComplexToDouble(Complex[][] c)
|
private double[] |
packComplexToDouble(Complex[] c,
double[] d)
Packs a complex array into a double array of twice the length Will allocate double array if necessary |
(package private) Complex[][] |
packDoubleToComplex(double[][] d,
Complex[][] c)
|
private Complex[] |
packDoubleToComplex(double[] d,
Complex[] c)
|
Complex[] |
rfft(double[] x,
Complex[] y,
int m)
Fast FFT function for real data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private edu.emory.mathcs.jtransforms.fft.DoubleFFT_1D doubleFFT_1D
private edu.emory.mathcs.jtransforms.fft.DoubleFFT_2D doubleFFT_2D
private int transformSize
private double[] dummyX
| Constructor Detail |
|---|
public FastFFT()
| Method Detail |
|---|
public Complex[] rfft(double[] x,
Complex[] y,
int m)
x - real data arrayy - preallocated Complex array for output data (can be null)m - log2 of the FFT length (sorry !)
public void fft(Complex[] x)
x - complex arraypublic void fft(Complex[][] x)
x -
public void ifft(Complex[] x,
int m)
x - Complex Datam - log2 of the FFT length (sorry !)public static int nextBinaryExp(int sourceNumber)
sourceNumber -
public static int log2(int num)
double[][] packComplexToDouble(Complex[][] c)
Complex[][] packDoubleToComplex(double[][] d,
Complex[][] c)
private double[] packComplexToDouble(Complex[] c,
double[] d)
c - Complex arrayd - double array
private Complex[] packDoubleToComplex(double[] d,
Complex[] c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||