|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectfftManager.FFT
@Deprecated public class FFT
The fft encapsulates methods to perform fast fourier transform on input of kernel and signal data.
| Field Summary | |
|---|---|
(package private) int |
ifftInitialArrayLength
Deprecated. |
| Constructor Summary | |
|---|---|
FFT()
Deprecated. Simple constructer, creates an fft object which provides the methods: crossCorrelation, recursiveIFFT, and recursiveFFT. |
|
| Method Summary | |
|---|---|
private double[] |
crossCorrelation(Complex[] signalComplex,
Complex[] kernelComplex)
Deprecated. Performs cross correlation in the frequency domain using FFT and IFFT. |
double[] |
crossCorrelation(double[] signal,
int signalStart,
int signalEnd,
double[] kernel,
int kernelStart,
int kernelEnd)
Deprecated. Performs cross correlation in the frequency domain using FFT and IFFT. |
private Complex[] |
doubleToPaddedComplex(double[] doubleArray,
int startPos,
int endPos,
int padToTotalLength)
Deprecated. Takes an array of doubles and uses it to create an array of type Complex. |
static int |
log2(int num)
Deprecated. |
static int |
nextBinaryExp(int sourceNumber)
Deprecated. Finds the next highest binary exponential of the input integer. |
Complex[] |
recursiveFFT(Complex[] complexIn)
Deprecated. |
Complex[] |
recursiveIFFT(Complex[] complexIn)
Deprecated. |
private void |
setIFFTInitialArrayLength(int initialArrayLength)
Deprecated. Sets a variable used by the fft algorithm to hold intial input array length. |
boolean |
testCrossCorrelation()
Deprecated. This is a test method for crossCorrelation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int ifftInitialArrayLength
| Constructor Detail |
|---|
public FFT()
| Method Detail |
|---|
public boolean testCrossCorrelation()
private void setIFFTInitialArrayLength(int initialArrayLength)
initialArrayLength - .Holds the value fft input array at the start.public static int nextBinaryExp(int sourceNumber)
sourceNumber -
public static int log2(int num)
@Deprecated public Complex[] recursiveFFT(Complex[] complexIn)
complexIn - The data array of type Complex.
@Deprecated public Complex[] recursiveIFFT(Complex[] complexIn)
complexIn - The data array of type Complex.
private Complex[] doubleToPaddedComplex(double[] doubleArray,
int startPos,
int endPos,
int padToTotalLength)
doubleArray - An array of double to be used form the 'real' part in an array
of type Complex.startPos - The index of first double to be used in forming the complex
array.endPos - The index of the last double to be used in forming the complex
array.padToTotalLength - pads the returned complex[] to have this number of elements.
This is done by appending (Real: 0.0, Imag: 0.0) Complex
objects to the end.
public double[] crossCorrelation(double[] signal,
int signalStart,
int signalEnd,
double[] kernel,
int kernelStart,
int kernelEnd)
signal - An array of type double containing the signal.signalStart - The index of where the signal starts within the array.signalEnd - The index of where the signal ends within the array.kernel - An array of type double containing the kernel.kernelStart - The index of where the kernel starts within the array.kernelEnd - The index of where the kernel ends within the array.
private double[] crossCorrelation(Complex[] signalComplex,
Complex[] kernelComplex)
signalComplex - An array of type Complex containing the signal.kernelComplex - An array of type Complex containing the kernel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||