|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.JWFastFourierTransform
public class JWFastFourierTransform
Calculates the Fast Fourier or Inverse Fast Fourier transforms of an array of discrete real or complex numbers respectively. Algorithm derived from Cooley et al (1969), implemented in Press et al (1988), Numerical Recipes in C. Adapted for two dimensions by A. Vali, University of Texas and D. Satnik, Central Washington University. Converted into Java by Jo Wood, 1998.
Field Summary | |
---|---|
static int |
FFT
Indicates a forward transform. |
static int |
IFFT
Indicates an inverse transform. |
Constructor Summary | |
---|---|
JWFastFourierTransform(float[] realNum,
float[] imagNum,
int nRows,
int nCols)
Performs a forward Fast Fourier Transform of an array of real numbers. |
|
JWFastFourierTransform(int transType,
float[] realNum,
float[] imagNum,
int nRows,
int nCols)
Performs a Fast Fourier Transform of an array of real numbers (FFT) or complex coefficients (IFFT). |
Method Summary | |
---|---|
static boolean |
isPowerOf2(int n)
Reports whether a given integer is a power of two or not. |
static int |
minPowerOf2(int n)
Reports the minimum power of 2 that is >= n. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FFT
public static final int IFFT
Constructor Detail |
---|
public JWFastFourierTransform(float[] realNum, float[] imagNum, int nRows, int nCols)
realNum
- Real component of numbers to transform.imagNum
- Imaginary component of numbers to transform.nRows
- Number of rows (2^n) represented by array.nCols
- Number of columns (2^m) represented by array.public JWFastFourierTransform(int transType, float[] realNum, float[] imagNum, int nRows, int nCols)
transType
- Type of transform, FFT for forward transform,
IFFT for inverse transform.realNum
- Real component of numbers to transform.imagNum
- Imaginary component of numbers to transform.nRows
- Number of rows (2^n) represented by array.nCols
- Number of columns (2^m) represented by array.Method Detail |
---|
public static boolean isPowerOf2(int n)
n
- Number to test.
public static int minPowerOf2(int n)
n
- Number to test.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |