marf.FeatureExtraction
Class FeatureExtraction

java.lang.Object
  |
  +--marf.Storage.StorageManager
        |
        +--marf.FeatureExtraction.FeatureExtraction
All Implemented Interfaces:
IStorageManager, java.io.Serializable
Direct Known Subclasses:
Cepstral, F0, FFT, LPC, MinMaxAmplitudes, RandomFeatureExtraction, Segmentation

public abstract class FeatureExtraction
extends StorageManager

Generic Feature Extraction Module.

$Id: FeatureExtraction.java,v 1.26 2005/05/25 01:46:32 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.26 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
protected  double[] adFeatures
          An array of features extracted (coefficiencies and/or amplitude values).
protected  marf.Preprocessing.Preprocessing oPreprocessing
          Internal reference to the Preprocessing module.
 
Fields inherited from class marf.Storage.StorageManager
iCurrentDumpMode, oObjectToSerialize, strFilename
 
Fields inherited from interface marf.Storage.IStorageManager
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, INTERFACE_CODE_REVISION, sastrExtensionsMap
 
Constructor Summary
protected FeatureExtraction(marf.Preprocessing.Preprocessing poPreprocessing)
          Main FeatureExtraction constructor.
 
Method Summary
 void backSynchronizeObject()
          Implementaion of back-synchronization of loaded object.
abstract  boolean extractFeatures()
          Abstract feature extraction routine.
 double[] getFeaturesArray()
          Allows retrieval of the internal feature vector.
static java.lang.String getRevision()
          Returns source code revision information.
 
Methods inherited from class marf.Storage.StorageManager
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oPreprocessing

protected marf.Preprocessing.Preprocessing oPreprocessing
Internal reference to the Preprocessing module.


adFeatures

protected double[] adFeatures
An array of features extracted (coefficiencies and/or amplitude values).

Constructor Detail

FeatureExtraction

protected FeatureExtraction(marf.Preprocessing.Preprocessing poPreprocessing)
Main FeatureExtraction constructor.

Parameters:
poPreprocessing - preprocessing object ref.
Method Detail

extractFeatures

public abstract boolean extractFeatures()
                                 throws FeatureExtractionException
Abstract feature extraction routine. Must be defined by the derivatives.

Returns:
boolean true if there were features extracted, false otherwise
Throws:
FeatureExtractionException - if there was an error while extracting features

getFeaturesArray

public final double[] getFeaturesArray()
Allows retrieval of the internal feature vector.

Returns:
array of features (double values)

backSynchronizeObject

public void backSynchronizeObject()
Implementaion of back-synchronization of loaded object.

Overrides:
backSynchronizeObject in class StorageManager
Since:
0.3.0
See Also:
StorageManager.restore()

getRevision

public static java.lang.String getRevision()
Returns source code revision information.

Returns:
revision string
Since:
0.3.0