marf.FeatureExtraction.MinMaxAmplitudes
Class MinMaxAmplitudes

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.FeatureExtraction.FeatureExtraction
          extended by marf.FeatureExtraction.MinMaxAmplitudes.MinMaxAmplitudes
All Implemented Interfaces:
java.io.Serializable, IFeatureExtraction, IStorageManager

public class MinMaxAmplitudes
extends FeatureExtraction

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.

$Id: MinMaxAmplitudes.java,v 1.10 2005/06/16 19:58:45 mokhov Exp $

TODO: needs improvement to select different amplitudes as we don't want 20 the same maximums or minimus if others are avaible.

Since:
0.3.0
Version:
$Revision: 1.10 $
Author:
Serguei Mokhov
See Also:
Serialized Form

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, 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()
          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, getFeaturesArray
 
Methods inherited from class marf.Storage.StorageManager
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_AMPLITUDES

public static final int MIN_AMPLITUDES
Default number of minimums (amplitudes) to collect.

See Also:
Constant Field Values

MAX_AMPLITUDES

public static final int MAX_AMPLITUDES
Default number of maximums (amplitudes) to collect.

See Also:
Constant Field Values
Constructor Detail

MinMaxAmplitudes

public MinMaxAmplitudes(IPreprocessing poPreprocessing)
MinMaxAmplitudes Constructor.

Parameters:
poPreprocessing - Preprocessing module reference
Method Detail

extractFeatures

public final boolean extractFeatures()
                              throws FeatureExtractionException
MinMaxAmplitudes implementation of extractFeatures().

Returns:
true if features were extracted, false otherwise
Throws:
FeatureExtractionException

toString

public java.lang.String toString()
Creates String representation of the inner feature vector.

Overrides:
toString in class java.lang.Object
Returns:
min/max data in String format

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Returns source code revision information.

Returns:
revision string