java.lang.Object
marf.Storage.StorageManager
marf.FeatureExtraction.FeatureExtraction
marf.FeatureExtraction.MinMaxAmplitudes.MinMaxAmplitudes
- All Implemented Interfaces:
- marf.FeatureExtraction.IFeatureExtraction, marf.Storage.IStorageManager, java.io.Serializable
- public class MinMaxAmplitudes
- extends marf.FeatureExtraction.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.12 2005/08/13 23:09:37 susan_fan 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.12 $
|
Field Summary |
static int |
MAX_AMPLITUDES
Default number of maximums (amplitudes) to collect. |
static int |
MIN_AMPLITUDES
Default number of minimums (amplitudes) to collect. |
private static long |
serialVersionUID
For serialization versioning. |
| 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 |
serialVersionUID
private static final long serialVersionUID
- For serialization versioning.
When adding new members or make other structural
changes regenerate this number with the
serialver tool that comes with JDK.
- Since:
- 0.3.0.4
- See Also:
- Constant Field Values
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
MinMaxAmplitudes
public MinMaxAmplitudes(marf.Preprocessing.IPreprocessing poPreprocessing)
- MinMaxAmplitudes Constructor.
extractFeatures
public final boolean extractFeatures()
throws marf.FeatureExtraction.FeatureExtractionException
- MinMaxAmplitudes implementation of
extractFeatures().
toString
public java.lang.String toString()
- Creates String representation of the inner feature vector.
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Returns source code revision information.