|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmarf.FeatureExtraction.FeatureExtraction
marf.FeatureExtraction.FFT.FFT
Class FFT
Implements Fast Fourier Transform
$Header: /cvsroot/marf/marf/src/marf/FeatureExtraction/FFT/FFT.java,v 1.34 2004/04/20 16:38:35 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 |
| Fields inherited from interface marf.Storage.StorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_XML |
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_CHUNK_SIZE
| Constructor Detail |
public FFT(Preprocessing poPreprocessing)
poPreprocessing - Preprocessing module reference| Method Detail |
public final boolean extractFeatures()
throws FeatureExtractionException
extractFeatures()
extractFeatures in class FeatureExtractionFeatureExtractionException
public void dump()
throws java.io.IOException
java.io.IOException
public void restore()
throws java.io.IOException
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 FFT
FeatureExtractionException
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||