marf.FeatureExtraction.RawFeatureExtraction
Class RawFeatureExtraction

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.FeatureExtraction.FeatureExtraction
          extended by 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

Field Summary
protected  int iMode
           
static int MODE_ADD_MOD
           
static int MODE_CROP_PASS_THROUGH
           
static int MODE_CROP_PASS_THROUGH_PADDED
          Expand to the chunk size if shorter (guarantees fixed-length output).
static int MODE_RAW_PASS_THROUGH
           
 
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
RawFeatureExtraction(IPreprocessing poPreprocessing)
           
 
Method Summary
 boolean extractFeatures(double[] padSampleData)
          Abstract feature extraction routine.
 
Methods inherited from class marf.FeatureExtraction.FeatureExtraction
backSynchronizeObject, clone, extractFeatures, getFeaturesArray, getMARFSourceCodeRevision, 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

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
Constructor Detail

RawFeatureExtraction

public RawFeatureExtraction(IPreprocessing poPreprocessing)
Parameters:
poPreprocessing -
Method Detail

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


SourceForge Logo