marf.Classification
Class ClassificationFactory

java.lang.Object
  extended bymarf.Classification.ClassificationFactory

public final class ClassificationFactory
extends java.lang.Object

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

$Id: ClassificationFactory.java,v 1.1 2005/12/28 03:21:11 mokhov Exp $

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

Method Summary
static IClassification create(java.lang.Integer poClassificationMethod, IFeatureExtraction poFeatureExtraction)
          Instantiates a Classification module indicated by the first parameter with the 2nd parameter as an argument.
static IClassification create(int piClassificationMethod, IFeatureExtraction poFeatureExtraction)
          Instantiates a Classification 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 IClassification create(java.lang.Integer poClassificationMethod,
                                           IFeatureExtraction poFeatureExtraction)
                                    throws ClassificationException
Instantiates a Classification module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
poClassificationMethod - the integer value corresponding to the desired classification module
poFeatureExtraction - passed as an agrument to the classifier per framework requirement
Returns:
a reference to the instance of the created feature extraction module
Throws:
ClassificationException - if the indicated module is uknown or could not be loaded
See Also:
MARF.NEURAL_NETWORK, MARF.STOCHASTIC, MARF.MARKOV, MARF.EUCLIDEAN_DISTANCE, MARF.CHEBYSHEV_DISTANCE, MARF.MINKOWSKI_DISTANCE, MARF.MAHALANOBIS_DISTANCE, MARF.RANDOM_CLASSIFICATION, MARF.DIFF_DISTANCE, MARF.CLASSIFICATION_PLUGIN, NeuralNetwork, Stochastic, Markov, ChebyshevDistance, EuclideanDistance, MinkowskiDistance, MahalanobisDistance, RandomClassification, DiffDistance

create

public static final IClassification create(int piClassificationMethod,
                                           IFeatureExtraction poFeatureExtraction)
                                    throws ClassificationException
Instantiates a Classification module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
piClassificationMethod - the integer value corresponding to the desired classification module
poFeatureExtraction - passed as an agrument to the classifier per framework requirement
Returns:
a reference to the instance of the created feature extraction module
Throws:
ClassificationException - if the indicated module is uknown or could not be loaded
See Also:
MARF.NEURAL_NETWORK, MARF.STOCHASTIC, MARF.MARKOV, MARF.EUCLIDEAN_DISTANCE, MARF.CHEBYSHEV_DISTANCE, MARF.MINKOWSKI_DISTANCE, MARF.MAHALANOBIS_DISTANCE, MARF.RANDOM_CLASSIFICATION, MARF.DIFF_DISTANCE, MARF.CLASSIFICATION_PLUGIN, NeuralNetwork, Stochastic, Markov, ChebyshevDistance, EuclideanDistance, MinkowskiDistance, MahalanobisDistance, RandomClassification, DiffDistance

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo