marf.FeatureExtraction.RawFeatureExtraction
Class RawFeatureExtraction
java.lang.Object
marf.Storage.StorageManager
marf.FeatureExtraction.FeatureExtraction
marf.FeatureExtraction.RawFeatureExtraction.RawFeatureExtraction
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, IFeatureExtraction, IStorageManager
public class RawFeatureExtraction
- extends FeatureExtraction
For a some applications it is desired to pass-through the
preprocessed sample data "as-is", or with little massaging;
this module does that. Note, unlike other feature extractor,
in one of its modes of operation, RawFeatureExtraction allows
arbitrary-length output in the pass-through mode, with which
far not all classifiers can cope with.
$Id: RawFeatureExtraction.java,v 1.1 2008/02/17 00:03:48 mokhov Exp $
- Since:
- 0.3.0.6
- Version:
- $Revision: 1.1 $
- Author:
- Serguei Mokhov
- See Also:
- Serialized Form
Method Summary |
boolean |
extractFeatures(double[] padSampleData)
Abstract feature extraction routine. |
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 |
MODE_RAW_PASS_THROUGH
public static final int MODE_RAW_PASS_THROUGH
- See Also:
- Constant Field Values
MODE_CROP_PASS_THROUGH
public static final int MODE_CROP_PASS_THROUGH
- See Also:
- Constant Field Values
MODE_CROP_PASS_THROUGH_PADDED
public static final int MODE_CROP_PASS_THROUGH_PADDED
- Expand to the chunk size if shorter
(guarantees fixed-length output).
- See Also:
- Constant Field Values
MODE_ADD_MOD
public static final int MODE_ADD_MOD
- See Also:
- Constant Field Values
iMode
protected int iMode
RawFeatureExtraction
public RawFeatureExtraction(IPreprocessing poPreprocessing)
- Parameters:
poPreprocessing
-
extractFeatures
public boolean extractFeatures(double[] padSampleData)
throws FeatureExtractionException
- Description copied from interface:
IFeatureExtraction
- Abstract feature extraction routine.
- Parameters:
padSampleData
- the sample to extract features from
- Returns:
- boolean true if there were features extracted, false otherwise
- Throws:
FeatureExtractionException
- if there was an error while extracting features