|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.FeatureExtraction.FeatureExtraction | +--marf.FeatureExtraction.FFT.FFT
Class FFT
Implements Fast Fourier Transform
$Header: /cvsroot/marf/marf/src/marf/FeatureExtraction/FFT/FFT.java,v 1.31.2.1 2003/02/16 18:26:46 mokhov Exp $
Field Summary | |
static int |
DEFAULT_CHUNK_SIZE
Default number (1024) of doubles per chunk in the window. |
Fields inherited from class marf.FeatureExtraction.FeatureExtraction |
adFeatures, oPreprocessing |
Constructor Summary | |
FFT(Preprocessing poPreprocessing)
FFT Constructor |
Method Summary | |
static void |
DoFFT(double[] InputReal,
double[] InputImag,
double[] OutputReal,
double[] OutputImag,
int direction)
FFT algorithm, translated from "Numerical Recipes in C++" Implements the Fast Fourier Transform, which performs a discrete Fourier transform in O(n*log(n)). |
void |
dump()
Not Implemented |
boolean |
extractFeatures()
FFT Implementation of extractFeatures() |
static void |
NormalFFT(double[] sample,
double[] magnitude)
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[] sample,
double[] magnitude,
double[] phaseAngle)
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude" and "phase angle". |
void |
restore()
Not Implemented |
Methods inherited from class marf.FeatureExtraction.FeatureExtraction |
getFeaturesArray, hamming, hamming |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int DEFAULT_CHUNK_SIZE
Constructor Detail |
public FFT(Preprocessing poPreprocessing)
poPreprocessing
- Preprocessing module referenceMethod Detail |
public final boolean extractFeatures() throws FeatureExtractionException
extractFeatures()
extractFeatures
in class FeatureExtraction
FeatureExtractionException
- public void dump() throws java.io.IOException
marf.Storage.StorageManager
java.io.IOException
- public void restore() throws java.io.IOException
marf.Storage.StorageManager
java.io.IOException
- public static final void DoFFT(double[] InputReal, double[] InputImag, double[] OutputReal, double[] OutputImag, int direction) throws FeatureExtractionException
FFT algorithm, translated from "Numerical Recipes in C++" 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 FFTFeatureExtractionException
- public static final void NormalFFT(double[] sample, double[] magnitude, double[] phaseAngle) throws FeatureExtractionException
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude" and "phase angle".
sample
- must be an array of size (2^k)magnitude
- must be half the size of "sample"phaseAngle
- must be half the size of "sample"FeatureExtractionException
- public static final void NormalFFT(double[] sample, double[] magnitude) throws FeatureExtractionException
Performs a normal FFT, taking a real input (supposedly an audio sample) and returns the frequency analysis in terms of "magnitude".
sample
- must be an array of size (2^k)magnitude
- must be half the size of "sample"FeatureExtractionException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |