|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.math.Algorithms.FFT
A collection of FFT-related math.
Constructor Summary | |
Algorithms.FFT()
|
Method Summary | |
static void |
doFFT(double[] InputReal,
double[] InputImag,
double[] OutputReal,
double[] OutputImag,
int direction)
FFT algorithm, translated from "Numerical Recipes in C++" that implements the Fast Fourier Transform, which performs a discrete Fourier transform in O(n*log(n)). |
static void |
normalFFT(double[] padSample,
double[] padMagnitude)
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude". |
static void |
normalFFT(double[] padSample,
double[] padMagnitude,
double[] padPhaseAngle)
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude" and "phase angle". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Algorithms.FFT()
Method Detail |
public static final void doFFT(double[] InputReal, double[] InputImag, double[] OutputReal, double[] OutputImag, int direction) throws MathException
FFT algorithm, translated from "Numerical Recipes in C++" that implements the Fast Fourier Transform, which performs a discrete Fourier transform in O(n*log(n)).
InputReal
- InputReal is real part of input arrayInputImag
- InputImag is imaginary part of input arrayOutputReal
- OutputReal is real part of output arrayOutputImag
- OutputImag is imaginary part of output arraydirection
- Direction is 1 for normal FFT, -1 for inverse FFT
MathException
- if the sizes or direction are wrongpublic static final void normalFFT(double[] padSample, double[] padMagnitude, double[] padPhaseAngle) throws MathException
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude" and "phase angle".
padSample
- must be an array of size (2^k)padMagnitude
- must be half the size of "sample"padPhaseAngle
- must be half the size of "sample"
MathException
public static final void normalFFT(double[] padSample, double[] padMagnitude) throws MathException
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude".
padSample
- must be an array of size (2^k)padMagnitude
- must be half the size of "sample"
MathException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |