|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.signal.utils.FFT
Fast Fourier Transform Class for one-dimension signal. Makes sure that the length of your signal is of power of 2 before applying FFT.
To get the correct shape of the Fourier Transform, you should shift the result signal right by half length.
| Field Summary | |
(package private) static int |
MAX_POW
Defines maximum length of the signal, which is 2^MAX_POW. |
(package private) static int[] |
pow2
An array to store the integers of power of 2. |
| Constructor Summary | |
FFT()
Default constructor |
|
| Method Summary | |
(package private) static void |
bitDump(int d)
|
(package private) static int |
BitReverse(int i,
int k)
|
static ComplexSignal |
doFFT(Signal im,
boolean forward)
Perforn the Fourier transform |
static ComplexSignal |
forward(Signal im)
Perform the Fourier Transform |
static ComplexSignal |
inverse(Signal im)
Perform the Inverse Fourier Transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final int MAX_POW
2^MAX_POW.
static final int[] pow2
| Constructor Detail |
public FFT()
| Method Detail |
static int BitReverse(int i,
int k)
static void bitDump(int d)
public static ComplexSignal forward(Signal im)
public static ComplexSignal inverse(Signal im)
public static ComplexSignal doFFT(Signal im,
boolean forward)
forward - true=Fourier, false=Inverse Fourier
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||