edu.ksu.cis.kdd.classifier
Class Classifier

java.lang.Object
  extended byedu.ksu.cis.kdd.classifier.Classifier
Direct Known Subclasses:
NaiveBayes

public abstract class Classifier
extends java.lang.Object

Author:
Roby Joehanes

Field Summary
protected  java.util.Hashtable classCounter
           
protected  Table data
           
protected  Estimator estimator
           
 
Constructor Summary
Classifier()
           
 
Method Summary
abstract  java.lang.Object build(Table tuples)
           
abstract  java.lang.Object classify(Tuple tuple)
           
 int getClassSize()
           
 int getClassTally(java.lang.Object value)
           
 Table getData()
          Returns the data.
 Estimator getEstimator()
          Returns the estimator.
 int getTupleSize()
           
abstract  void init()
           
 void setEstimator(Estimator estimator)
          Sets the estimator.
 void tallyClassValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected Table data

classCounter

protected java.util.Hashtable classCounter

estimator

protected Estimator estimator
Constructor Detail

Classifier

public Classifier()
Method Detail

tallyClassValues

public void tallyClassValues()

init

public abstract void init()

build

public abstract java.lang.Object build(Table tuples)

classify

public abstract java.lang.Object classify(Tuple tuple)

getEstimator

public Estimator getEstimator()
Returns the estimator.

Returns:
Estimator

setEstimator

public void setEstimator(Estimator estimator)
Sets the estimator.

Parameters:
estimator - The estimator to set

getClassTally

public int getClassTally(java.lang.Object value)

getTupleSize

public int getTupleSize()

getClassSize

public int getClassSize()

getData

public Table getData()
Returns the data.

Returns:
Table