marf.FeatureExtraction
Class FeatureExtraction

java.lang.Object
  extended bymarf.Storage.StorageManager
      extended bymarf.FeatureExtraction.FeatureExtraction
All Implemented Interfaces:
java.lang.Cloneable, IFeatureExtraction, IStorageManager, java.io.Serializable
Direct Known Subclasses:
Cepstral, F0, FeatureExtractionAggregator, FFT, LPC, MinMaxAmplitudes, RandomFeatureExtraction, Segmentation

public abstract class FeatureExtraction
extends StorageManager
implements IFeatureExtraction

Generic Feature Extraction Module. Every feature extraction module must extend this class; if it cannot then they must implement the IFeatureExtraction interface.

$Id: FeatureExtraction.java,v 1.33 2006/01/21 02:35:31 mokhov Exp $

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

Field Summary
protected  double[] adFeatures
          An array of features extracted (coefficiencies and/or amplitude values).
protected  IPreprocessing oPreprocessing
          Internal reference to the Preprocessing module.
 
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
protected FeatureExtraction(IPreprocessing poPreprocessing)
          Main FeatureExtraction constructor.
 
Method Summary
 void backSynchronizeObject()
          Implementaion of back-synchronization of loaded object.
 java.lang.Object clone()
          Implementes Cloneable interface for the FeatureExtraction object.
 double[] getFeaturesArray()
          Allows retrieval of the internal feature vector.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 IPreprocessing getPreprocessing()
          Retrieves inner preprocessing reference.
 void setPreprocessing(IPreprocessing poPreprocessing)
          Allows setting the source preprocessing module.
 
Methods inherited from class marf.Storage.StorageManager
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, 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
 
Methods inherited from interface marf.FeatureExtraction.IFeatureExtraction
extractFeatures
 

Field Detail

oPreprocessing

protected IPreprocessing 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(IPreprocessing poPreprocessing)
Main FeatureExtraction constructor.

Parameters:
poPreprocessing - preprocessing object ref.
Method Detail

getFeaturesArray

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

Specified by:
getFeaturesArray in interface IFeatureExtraction
Returns:
array of features (double values)

getPreprocessing

public IPreprocessing getPreprocessing()
Retrieves inner preprocessing reference.

Specified by:
getPreprocessing in interface IFeatureExtraction
Returns:
the preprocessing reference
Since:
0.3.0.4

setPreprocessing

public void setPreprocessing(IPreprocessing poPreprocessing)
Allows setting the source preprocessing module.

Specified by:
setPreprocessing in interface IFeatureExtraction
Parameters:
poPreprocessing - the preprocessing object to set
Since:
0.3.0.4

backSynchronizeObject

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

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

clone

public java.lang.Object clone()
Implementes Cloneable interface for the FeatureExtraction object. The contained Preprocessing isn't cloned at this point, and is just assigned to the clone.

Overrides:
clone in class StorageManager
Since:
0.3.0.5
See Also:
Object.clone()

getMARFSourceCodeRevision

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

Returns:
revision string
Since:
0.3.0.2


SourceForge Logo