marf.Preprocessing.Dummy
Class Raw

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.Preprocessing.Preprocessing
          extended by marf.Preprocessing.Dummy.Dummy
              extended by marf.Preprocessing.Dummy.Raw
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IPreprocessing, IStorageManager
Direct Known Subclasses:
Crop

public class Raw
extends Dummy

Implements raw preprocessing module for testing purposes that does not do any preprocessing.

$Id: Raw.java,v 1.15 2007/12/16 01:11:05 mokhov Exp $

Since:
0.3.0.2
Version:
$Revision: 1.15 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          For serialization versioning.
 
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
Raw()
          Default constructor for reflective creation of Preprocessing clones.
Raw(IPreprocessing poPreprocessing)
          Implementation of the preprocessing pipeline.
Raw(Sample poSample)
          Raw Constructor.
 
Method Summary
 boolean cropAudio(double pdStartingFrequency, double pdEndFrequency)
          Raw implementation of cropAudio() for testing.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 boolean preprocess()
          Raw implementation of preprocess() for testing.
 boolean removeNoise()
          Raw implementation of removeNoise() for testing.
 boolean removeSilence()
          Raw implementation of removeSilence() for testing.
 
Methods inherited from class marf.Preprocessing.Preprocessing
backSynchronizeObject, clone, compress, compress, extractParameters, getSample, normalize, normalize, normalize, 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

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
Constructor Detail

Raw

public Raw()
Default constructor for reflective creation of Preprocessing clones. Typically should not be used unless really necessary for the frameworked modules.

Since:
0.3.0.5

Raw

public Raw(IPreprocessing poPreprocessing)
    throws PreprocessingException
Implementation of the preprocessing pipeline.

Parameters:
poPreprocessing - successor preprocessing module
Throws:
PreprocessingException

Raw

public Raw(Sample poSample)
    throws PreprocessingException
Raw Constructor.

Parameters:
poSample - incoming sample
Throws:
PreprocessingException
Method Detail

preprocess

public boolean preprocess()
                   throws PreprocessingException
Raw implementation of preprocess() for testing. Does not do any preprocessing.

Specified by:
preprocess in interface IPreprocessing
Overrides:
preprocess in class Dummy
Returns:
true
Throws:
PreprocessingException - never thrown
See Also:
IPreprocessing.removeNoise(), IPreprocessing.removeSilence()

removeNoise

public final boolean removeNoise()
                          throws PreprocessingException
Raw implementation of removeNoise() for testing. Does not do any noise removal.

Specified by:
removeNoise in interface IPreprocessing
Overrides:
removeNoise in class Preprocessing
Returns:
true
Throws:
PreprocessingException - never thrown
See Also:
LowPassFilter

removeSilence

public final boolean removeSilence()
                            throws PreprocessingException
Raw implementation of removeSilence() for testing. Does not do any silence removal.

Specified by:
removeSilence in interface IPreprocessing
Overrides:
removeSilence in class Preprocessing
Returns:
true
Throws:
PreprocessingException - never thrown
See Also:
Preprocessing.removeSilence(double[], double), Preprocessing.dSilenceThreshold

cropAudio

public final boolean cropAudio(double pdStartingFrequency,
                               double pdEndFrequency)
                        throws PreprocessingException
Raw implementation of cropAudio() for testing.

Specified by:
cropAudio in interface IPreprocessing
Overrides:
cropAudio in class Preprocessing
Parameters:
pdStartingFrequency - unused
pdEndFrequency - unused
Returns:
true
Throws:
PreprocessingException - never thrown

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo