|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmarf.Preprocessing.Preprocessing
Class Preprocessing
Abstract Preprocessing Module
$Header: /cvsroot/marf/marf/src/marf/Preprocessing/Preprocessing.java,v 1.21 2003/04/20 06:27:46 mokhov Exp $
| Field Summary | |
protected Sample |
oSample
Sample container |
| Fields inherited from interface marf.Storage.StorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_XML |
| Constructor Summary | |
protected |
Preprocessing(Sample poSample)
Preprocessing Constructor |
| Method Summary | |
boolean |
cropAudio(double pdStartingFrequency,
double pdEndFrequency)
Derivatives implement this method to crop arbitrary part of the audio sample. |
void |
dump()
Not Implemented |
Sample |
getSample()
Returns enclosed sample. |
boolean |
normalize()
Normalization of incoming samples by amplitude. |
abstract boolean |
preprocess()
Derivatives implement this method to do general preprocessing and perhaps calling removeNoise() and removeSilence(). |
boolean |
removeNoise()
Derivatives implement this method to remove noise from the sample. |
boolean |
removeSilence()
Derivatives implement this method to remove silence. |
void |
restore()
Not Implemented |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Sample oSample
| Constructor Detail |
protected Preprocessing(Sample poSample)
poSample - loaded sample by a SampleLoader| Method Detail |
public abstract boolean preprocess()
throws PreprocessingException
removeNoise() and removeSilence().
PreprocessingException
public boolean removeNoise()
throws PreprocessingException
PreprocessingException
public boolean removeSilence()
throws PreprocessingException
PreprocessingException
public final boolean normalize()
throws PreprocessingException
true if the sample has been successfully normalized; false> otherwise
- Throws:
PreprocessingException
public boolean cropAudio(double pdStartingFrequency,
double pdEndFrequency)
throws PreprocessingException
pdStartingFrequency - double Fequency to start to crop frompdEndFrequency - double Frequency to crop the sample to
true - cropped, false - not
PreprocessingExceptionpublic final Sample getSample()
public void dump()
throws java.io.IOException
dump in interface StorageManagerIOException
public void restore()
throws java.io.IOException
restore in interface StorageManagerIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||