java.lang.Object
marf.Storage.StorageManager
marf.Preprocessing.Preprocessing
marf.Preprocessing.BandpassFilter.BandpassFilter
- All Implemented Interfaces:
- marf.Preprocessing.IPreprocessing, marf.Storage.IStorageManager, java.io.Serializable
- public class BandpassFilter
- extends marf.Preprocessing.Preprocessing
Class BandpassFilter
$Header: /cvsroot/marf/marf/src/marf/Preprocessing/BandpassFilter/BandpassFilter.java,v 1.4 2002/12/07 07:54:47 mokhov Exp $
|
Method Summary |
boolean |
cropAudio(double pdStartingFrequency,
double pdEndFrequency)
Derivatives implement this method to crop arbitrary
part of the audio sample. |
void |
dump()
An object must know how dump itself or its data structures to a file. |
boolean |
preprocess()
Derivatives must implement this method to do general
preprocessing and perhaps calling removeNoise()
and removeSilence(). |
boolean |
removeNoise()
Derivatives should implement this method to remove noise from the sample. |
boolean |
removeSilence()
Derivatives should implement this method to remove silence. |
void |
restore()
An object must know how restore itself or its data structures from a file. |
| Methods inherited from class marf.Storage.StorageManager |
dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BandpassFilter
public BandpassFilter(marf.Storage.Sample poSample)
preprocess
public boolean preprocess()
throws marf.Preprocessing.PreprocessingException
- Description copied from interface:
marf.Preprocessing.IPreprocessing
- Derivatives must implement this method to do general
preprocessing and perhaps calling
removeNoise()
and removeSilence().
removeNoise
public boolean removeNoise()
throws marf.Preprocessing.PreprocessingException
- Description copied from class:
marf.Preprocessing.Preprocessing
- Derivatives should implement this method to remove noise from the sample.
removeSilence
public boolean removeSilence()
throws marf.Preprocessing.PreprocessingException
- Description copied from class:
marf.Preprocessing.Preprocessing
- Derivatives should implement this method to remove silence.
cropAudio
public boolean cropAudio(double pdStartingFrequency,
double pdEndFrequency)
- Description copied from class:
marf.Preprocessing.Preprocessing
- Derivatives implement this method to crop arbitrary
part of the audio sample.
dump
public void dump()
throws java.io.IOException
- Description copied from class:
marf.Storage.StorageManager
- An object must know how dump itself or its data structures to a file.
Options are: Object serialization, XML, CSV, HTML, SQL. Internally, the method
calls all the
dump*() methods based on the current dump mode.
If the derivatives use only DUMP_GZIP_BINARY or DUMP_BINARY modes, the
need not do anything except implementing backSynchronizeObject(). For the
rest of modes they only have to override a corresponding dump*() method.
restore
public void restore()
throws java.io.IOException
- Description copied from class:
marf.Storage.StorageManager
- An object must know how restore itself or its data structures from a file.
Options are: Object serialization, XML, CSV, HTML, SQL. Internally, the method
calls all the
restore*() methods based on the current dump mode.
If the derivatives use only DUMP_GZIP_BINARY or DUMP_BINARY modes, the
need not do anything except implementing backSynchronizeObject(). For the
rest of modes they only have to override a corresponding restore*() method.