|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.Preprocessing.Preprocessing marf.Preprocessing.Endpoint.Endpoint
public class Endpoint
Implements endpoint preprocessing in MARF.
Endpoints are considered to be the local minimum and maximum values of an amplitude. A few variations apply.
$Id: Endpoint.java,v 1.28 2007/12/18 03:45:56 mokhov Exp $
Field Summary | |
---|---|
protected boolean |
bCompress
Indicates whether to compress or not the sample before extracting edpoints. |
protected boolean |
bConsiderEdges
Indicates whether to consider or or not the edge points (at the beginning and the end of the sample) as endpoints. |
Fields inherited from class marf.Preprocessing.Preprocessing |
---|
bRemoveNoise, bRemoveSilence, DEFAULT_SILENCE_THRESHOLD, dSilenceThreshold, oSample |
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Preprocessing.IPreprocessing |
---|
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 | |
---|---|
Endpoint()
Default constructor for reflective creation of Preprocessing clones. |
|
Endpoint(IPreprocessing poPreprocessing)
Preprocessing pipeline constructor. |
|
Endpoint(Sample poSample)
Endpoint Constructor. |
Method Summary | |
---|---|
boolean |
enableCompression(boolean pbEnable)
Enables or disables sample compression prior endpoints extraction. |
boolean |
enableEdgeEndpoints(boolean pbEnable)
Enables or disables consideration of the sample edges as endpoints. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
boolean |
preprocess()
Filters out sample points that are not endpoints. |
protected void |
processModuleParams()
A common local routine for extraction endpointing parameters via the ModuleParams machinery. |
Methods inherited from class marf.Preprocessing.Preprocessing |
---|
backSynchronizeObject, clone, compress, compress, cropAudio, extractParameters, getSample, normalize, normalize, normalize, removeNoise, removeSilence, removeSilence, setSample |
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 |
---|
protected boolean bCompress
false
.
protected boolean bConsiderEdges
true
.
Constructor Detail |
---|
public Endpoint()
public Endpoint(IPreprocessing poPreprocessing) throws PreprocessingException
poPreprocessing
- follow-up preprocessing module
PreprocessingException
public Endpoint(Sample poSample) throws PreprocessingException
poSample
- incoming sample
PreprocessingException
Method Detail |
---|
public boolean preprocess() throws PreprocessingException
preprocess
in interface IPreprocessing
preprocess
in class Preprocessing
true
if the preprocessing was successful.
PreprocessingException
- if the resulting endpoints array contains no databCompress
,
bConsiderEdges
public boolean enableCompression(boolean pbEnable)
pbEnable
- true
if the compression is desired
public boolean enableEdgeEndpoints(boolean pbEnable)
pbEnable
- true
if the consideration is desired
protected void processModuleParams()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |