|
||||||||||
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
public abstract class FeatureExtraction
Generic Feature Extraction Module.
Every feature extraction module must extend this class; if it cannot
then they must implement the IFeatureExtraction
interface.
IFeatureExtraction
,
Serialized FormField Summary | |
---|---|
protected double[] |
adFeatures
An array of features extracted (coefficiencies and/or amplitude values). |
protected FeatureSet |
oFeatureSet
A collection of feature vectors or sets for a subject. |
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()
Implementation of back-synchronization of loaded object. |
java.lang.Object |
clone()
Implements Cloneable interface for the FeatureExtraction object. |
boolean |
extractFeatures()
Provides default implementation of the API by using the sample data provided by the IPreprocessing module. |
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, 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 |
Methods inherited from interface marf.FeatureExtraction.IFeatureExtraction |
---|
extractFeatures |
Field Detail |
---|
protected IPreprocessing oPreprocessing
protected double[] adFeatures
protected FeatureSet oFeatureSet
Constructor Detail |
---|
protected FeatureExtraction(IPreprocessing poPreprocessing)
poPreprocessing
- preprocessing object ref.Method Detail |
---|
public boolean extractFeatures() throws FeatureExtractionException
extractFeatures
in interface IFeatureExtraction
FeatureExtractionException
- if there was an error while extracting featuresIFeatureExtraction.extractFeatures()
public final double[] getFeaturesArray()
getFeaturesArray
in interface IFeatureExtraction
double
values)public IPreprocessing getPreprocessing()
getPreprocessing
in interface IFeatureExtraction
public void setPreprocessing(IPreprocessing poPreprocessing)
setPreprocessing
in interface IFeatureExtraction
poPreprocessing
- the preprocessing object to setpublic void backSynchronizeObject()
backSynchronizeObject
in class StorageManager
StorageManager.backSynchronizeObject()
public java.lang.Object clone()
clone
in class StorageManager
Object.clone()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |