marf.Classification
Class ClassificationFactory

java.lang.Object
  extended by marf.Classification.ClassificationFactory

public final class ClassificationFactory
extends java.lang.Object

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

$Id: ClassificationFactory.java,v 1.5 2007/12/31 00:17:04 mokhov Exp $

Since:
0.3.0.5
Version:
$Revision: 1.5 $
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 argument 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 unknown 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.HAMMING_DISTANCE, MARF.COSINE_SIMILARITY_MEASURE, MARF.CLASSIFICATION_PLUGIN, MARF.ZIPFS_LAW, NeuralNetwork, Stochastic, Markov, ChebyshevDistance, EuclideanDistance, MinkowskiDistance, MahalanobisDistance, RandomClassification, DiffDistance, HammingDistance, CosineSimilarityMeasure, ZipfLaw

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 argument 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 unknown 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.HAMMING_DISTANCE, MARF.COSINE_SIMILARITY_MEASURE, MARF.CLASSIFICATION_PLUGIN, MARF.ZIPFS_LAW, NeuralNetwork, Stochastic, Markov, ChebyshevDistance, EuclideanDistance, MinkowskiDistance, MahalanobisDistance, RandomClassification, DiffDistance, HammingDistance, CosineSimilarityMeasure, ZipfLaw

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo