marf.FeatureExtraction.LPC
Class LPC

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

public class LPC
extends FeatureExtraction

Class LPC implements Linear Predictive Coding.

$Id: LPC.java,v 1.41 2006/08/04 03:31:05 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.41 $
Author:
Ian Clement, Serguei Mokhov
See Also:
Serialized Form

Field Summary
static int DEFAULT_POLES
          Default number of poles, 20.
static int DEFAULT_WINDOW_LENGTH
          Default window length of 128 elements.
 
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
LPC(IPreprocessing poPreprocessing)
          LPC Constructor.
 
Method Summary
 boolean extractFeatures(double[] padSampleData)
          LPC Implementation of extractFeatures().
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 int getPoles()
          Retrieves the number of poles.
 int getWindowLength()
          Retrieves the window length.
 void setPoles(int piPoles)
          Allows setting the number of poles.
 void setWindowLength(int piWindowLen)
          Allows setting the window length.
 
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, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_WINDOW_LENGTH

public static final int DEFAULT_WINDOW_LENGTH
Default window length of 128 elements.

Since:
0.3.0
See Also:
Constant Field Values

DEFAULT_POLES

public static final int DEFAULT_POLES
Default number of poles, 20.

Since:
0.3.0
See Also:
Constant Field Values
Constructor Detail

LPC

public LPC(IPreprocessing poPreprocessing)
LPC Constructor.

Parameters:
poPreprocessing - Preprocessing module reference
Method Detail

extractFeatures

public final boolean extractFeatures(double[] padSampleData)
                              throws FeatureExtractionException
LPC Implementation of extractFeatures(). As of 0.3.0.6 the generic pipelined extractFeatures() refactored out to FeatureExtraction.

Parameters:
padSampleData - the sample to extract features from
Returns:
true if features were extracted, false otherwise
Throws:
FeatureExtractionException - on any exception while extracting features
Since:
0.3.0.6
See Also:
IFeatureExtraction.extractFeatures(double[])

getPoles

public int getPoles()
Retrieves the number of poles.

Returns:
the number of poles
Since:
0.3.0.4

setPoles

public void setPoles(int piPoles)
Allows setting the number of poles.

Parameters:
piPoles - new number of poles
Since:
0.3.0.4

getWindowLength

public int getWindowLength()
Retrieves the window length.

Returns:
the window length
Since:
0.3.0.4

setWindowLength

public void setWindowLength(int piWindowLen)
Allows setting the window length.

Parameters:
piWindowLen - the window length to set
Since:
0.3.0.4

getMARFSourceCodeRevision

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

Returns:
revision string
Since:
0.3.0.2


SourceForge Logo