marf.Classification
Class Classification

java.lang.Object
  |
  +--marf.Classification.Classification
All Implemented Interfaces:
StorageManager
Direct Known Subclasses:
Distance, Markov, NeuralNetwork, RandomClassification, Stochastic

public abstract class Classification
extends java.lang.Object
implements StorageManager

Class Classification

Abstract Classification Module

$Header: /cvsroot/marf/marf/src/marf/Classification/Classification.java,v 1.16.2.1 2003/02/16 18:08:53 mokhov Exp $


Field Summary
protected  FeatureExtraction oFeatureExtraction
          Reference to the FeatureExtraction object
protected  Result oResult
          Classification Result
protected  TrainingSet oTrainingSet
          TrainingSet Container
 
Constructor Summary
protected Classification(FeatureExtraction poFeatureExtraction)
          Generic Classification Constructor
 
Method Summary
abstract  boolean classify()
          Generic classification routine.
 void dump()
          Generic implementation of dump() for TrainingSet
 Result getResult()
          Retrieves the classification result
 void restore()
          Generic implementation of restore() for TrainingSet
 boolean train()
          Generic training routine for building/updating mean vectors in the training set.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oFeatureExtraction

protected FeatureExtraction oFeatureExtraction
Reference to the FeatureExtraction object

oTrainingSet

protected TrainingSet oTrainingSet
TrainingSet Container

oResult

protected Result oResult
Classification Result
Constructor Detail

Classification

protected Classification(FeatureExtraction poFeatureExtraction)
Generic Classification Constructor
Parameters:
poFeatureExtraction - FeatureExtraction module reference
Method Detail

classify

public abstract boolean classify()
                          throws ClassificationException
Generic classification routine.
Returns:
true if classification was successful; false otherwise
Throws:
ClassificationException -  

train

public boolean train()
              throws ClassificationException
Generic training routine for building/updating mean vectors in the training set. Can be overriden, and if overriding classifier is using TrainingSet, it should call super.train();
Returns:
true if training successful (i.e. mean vector was updated), false otherwise
Throws:
ClassificationException -  

dump

public void dump()
          throws java.io.IOException
Generic implementation of dump() for TrainingSet
Specified by:
dump in interface StorageManager
Throws:
java.io.IOException -  
Since:
0.2.0

restore

public void restore()
             throws java.io.IOException
Generic implementation of restore() for TrainingSet
Specified by:
restore in interface StorageManager
Throws:
java.io.IOException -  
Since:
0.2.0

getResult

public final Result getResult()
Retrieves the classification result
Returns:
Result object