|
||||||||||
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.MinMaxAmplitudes.MinMaxAmplitudes
public class MinMaxAmplitudes
Min/Max Amplitudes.
Extracts N minimum and X maximum amplitudes from a sample as features. If incoming sample array's length is less than N + X, it is adjusted to be N + X long with the length/2 value repeated N + X - length times.
TODO: needs improvement to select different amplitudes as we don't want 20 the same maximums or minimums if others are available.
$Id: MinMaxAmplitudes.java,v 1.15 2007/12/18 03:45:41 mokhov Exp $
Field Summary | |
---|---|
static int |
MAX_AMPLITUDES
Default number of maximums (amplitudes) to collect. |
static int |
MIN_AMPLITUDES
Default number of minimums (amplitudes) to collect. |
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 | |
---|---|
MinMaxAmplitudes(IPreprocessing poPreprocessing)
MinMaxAmplitudes Constructor. |
Method Summary | |
---|---|
boolean |
extractFeatures(double[] padSampleData)
MinMaxAmplitudes implementation of extractFeatures() . |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
java.lang.String |
toString()
Creates String representation of the inner feature vector. |
Methods inherited from class marf.FeatureExtraction.FeatureExtraction |
---|
backSynchronizeObject, clone, extractFeatures, 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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MIN_AMPLITUDES
public static final int MAX_AMPLITUDES
Constructor Detail |
---|
public MinMaxAmplitudes(IPreprocessing poPreprocessing)
poPreprocessing
- Preprocessing module referenceMethod Detail |
---|
public final boolean extractFeatures(double[] padSampleData) throws FeatureExtractionException
extractFeatures()
.
As of 0.3.0.6 the generic pipelined extractFeatures()
refactored out to FeatureExtraction
.
padSampleData
- the sample to extract features from
true
if features were extracted, false
otherwise
FeatureExtractionException
IFeatureExtraction.extractFeatures(double[])
public java.lang.String toString()
toString
in class StorageManager
Object.toString()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |