marf.Preprocessing
Class PreprocessingFactory

java.lang.Object
  extended by marf.Preprocessing.PreprocessingFactory

public final class PreprocessingFactory
extends java.lang.Object

Provides a factory to instantiate requested preprocessing module(s).

$Id: PreprocessingFactory.java,v 1.4 2007/12/16 07:14:52 mokhov Exp $

Since:
0.3.0.5
Version:
$Revision: 1.4 $
Author:
Serguei Mokhov

Method Summary
static IPreprocessing create(java.lang.Integer poPreprocessingMethod, Sample poSample)
          Instantiates a Preprocessing module indicated by the first parameter with the 2nd parameter as an argument.
static IPreprocessing create(int piPreprocessingMethod, Sample poSample)
          Instantiates a Preprocessing module indicated by the first parameter with the 2nd parameter as an argument.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final IPreprocessing create(java.lang.Integer poPreprocessingMethod,
                                          Sample poSample)
                                   throws PreprocessingException
Instantiates a Preprocessing module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
poPreprocessingMethod - the integer value corresponding to the desired Preprocessing module
poSample - passed as an argument to the preprocessor per framework requirement
Returns:
a reference to the instance of the created feature extraction module
Throws:
PreprocessingException - if the indicated module is unknown or could not be loaded
See Also:
MARF.DUMMY, MARF.BANDPASS_FFT_FILTER, MARF.ENDPOINT, MARF.HIGH_FREQUENCY_BOOST_FFT_FILTER, MARF.LOW_PASS_FFT_FILTER, MARF.HIGH_PASS_FFT_FILTER, MARF.HIGH_PASS_BOOST_FILTER, MARF.RAW, MARF.PREPROCESSING_PLUGIN, Dummy, BandpassFilter, Endpoint, HighFrequencyBoost, LowPassFilter, HighPassFilter, Raw

create

public static final IPreprocessing create(int piPreprocessingMethod,
                                          Sample poSample)
                                   throws PreprocessingException
Instantiates a Preprocessing module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
piPreprocessingMethod - the integer value corresponding to the desired Preprocessing module
poSample - passed as an argument to the preprocessor per framework requirement
Returns:
a reference to the instance of the created feature extraction module
Throws:
PreprocessingException - if the indicated module is unknown or could not be loaded
See Also:
MARF.DUMMY, MARF.BANDPASS_FFT_FILTER, MARF.ENDPOINT, MARF.HIGH_FREQUENCY_BOOST_FFT_FILTER, MARF.LOW_PASS_FFT_FILTER, MARF.HIGH_PASS_FFT_FILTER, MARF.HIGH_PASS_BOOST_FILTER, MARF.RAW, MARF.PREPROCESSING_PLUGIN, Dummy, BandpassFilter, Endpoint, HighFrequencyBoost, LowPassFilter, HighPassFilter, Raw

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo