|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.FeatureExtraction.FeatureExtraction marf.FeatureExtraction.FFT.FFT
public class FFT
Class FFT implements Fast Fourier Transform.
$Id: FFT.java,v 1.55 2006/12/28 06:01:57 mokhov Exp $
Field Summary | |
---|---|
static int |
DEFAULT_CHUNK_SIZE
Default number (1024) of doubles per chunk in the window. |
protected int |
iChunkSize
FFT chunk size. |
Fields inherited from class marf.FeatureExtraction.FeatureExtraction |
---|
adFeatures, oFeatureSet, oPreprocessing |
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.FeatureExtraction.IFeatureExtraction |
---|
MARF_INTERFACE_CODE_REVISION |
Fields inherited from interface marf.Storage.IStorageManager |
---|
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS |
Constructor Summary | |
---|---|
FFT(IPreprocessing poPreprocessing)
FFT Constructor. |
Method Summary | |
---|---|
boolean |
extractFeatures()
FFT Implementation of extractFeatures() . |
boolean |
extractFeatures(double[] padSampleData)
Extracts features from the provided sample array. |
protected boolean |
extractFeaturesImplementation(Sample poSample)
Does the actual business logic of the FFT feature extraction. |
int |
getChunkSize()
Allows getting the current chunk size. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
int |
setChunkSize(int piChunkSize)
Allows setting a non-default chunk size. |
Methods inherited from class marf.FeatureExtraction.FeatureExtraction |
---|
backSynchronizeObject, clone, getFeaturesArray, getPreprocessing, setPreprocessing |
Methods inherited from class marf.Storage.StorageManager |
---|
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, getObjectToSerialize, hashCode, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_CHUNK_SIZE
protected int iChunkSize
Constructor Detail |
---|
public FFT(IPreprocessing poPreprocessing)
poPreprocessing
- Preprocessing module reference
java.lang.ClassCastException
- if a feature extraction module parameter
supplied and is not of type Integer
java.lang.IllegalArgumentException
- if the chunk size parameter is
less than 1 or not a power of 2Method Detail |
---|
public final boolean extractFeatures() throws FeatureExtractionException
extractFeatures()
.
Sample is taken from an IPreprocessing module from the pipeline.
extractFeatures
in interface IFeatureExtraction
extractFeatures
in class FeatureExtraction
true
if there were features extracted, false
otherwise
FeatureExtractionException
- in case of any errors while doing stuffIFeatureExtraction.extractFeatures()
public final boolean extractFeatures(double[] padSampleData) throws FeatureExtractionException
padSampleData
- the sample to extract features from
FeatureExtractionException
- if there was an error while extracting featuresIFeatureExtraction.extractFeatures(double[])
protected final boolean extractFeaturesImplementation(Sample poSample) throws FeatureExtractionException
poSample
- sample to extract features from
true
if there were features extracted, false
otherwise
FeatureExtractionException
- in case of any errors while doing stuffpublic int setChunkSize(int piChunkSize)
piChunkSize
- new chunk size
java.lang.IllegalArgumentException
- if the chunk size parameter is
less than 1 or not a power of 2public int getChunkSize()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |