|
||||||||||
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 marf.FeatureExtraction.RandomFeatureExtraction.RandomFeatureExtraction
public class RandomFeatureExtraction
Implementation of random feature extraction for testing as a baseline.
$Id: RandomFeatureExtraction.java,v 1.18 2007/12/18 03:45:42 mokhov Exp $
Field Summary | |
---|---|
static int |
DEFAULT_CHUNK_SIZE
Default number (256) of doubles per chunk in a feature vector. |
private static long |
serialVersionUID
For serialization versioning. |
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 | |
---|---|
RandomFeatureExtraction(IPreprocessing poPreprocessing)
RandomFeatureExtraction Constructor. |
Method Summary | |
---|---|
boolean |
extractFeatures()
Random Gaussian-based feature extraction. |
boolean |
extractFeatures(double[] padSampleData)
Extracts features from the provided sample array. |
protected boolean |
extractFeaturesImplementation(Sample poSample)
Does the actual business logic of the random Gaussian feature extraction. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
Methods inherited from class marf.FeatureExtraction.FeatureExtraction |
---|
backSynchronizeObject, clone, getFeaturesArray, 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 |
---|
public static final int DEFAULT_CHUNK_SIZE
private static final long serialVersionUID
serialver
tool that comes with JDK.
Constructor Detail |
---|
public RandomFeatureExtraction(IPreprocessing poPreprocessing)
poPreprocessing
- Preprocessing object referenceMethod Detail |
---|
public final boolean extractFeatures() throws FeatureExtractionException
extractFeatures
in interface IFeatureExtraction
extractFeatures
in class FeatureExtraction
true
if successful
FeatureExtractionException
- in case of any errorIFeatureExtraction.extractFeatures()
public final boolean extractFeatures(double[] padSampleData) throws FeatureExtractionException
padSampleData
- the sample to extract features from
FeatureExtractionException
- if there was an error while extracting featuresIFeatureExtraction.extractFeatures(double[])
protected final boolean extractFeaturesImplementation(Sample poSample) throws FeatureExtractionException
poSample
- sample to extract features from
true
if there were features extracted, false
otherwise
FeatureExtractionException
- in case of any errors while doing stuffpublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |