edu.ksu.cis.kdd.classifier.estimator
Class LaplaceEstimator

java.lang.Object
  extended byedu.ksu.cis.kdd.classifier.estimator.Estimator
      extended byedu.ksu.cis.kdd.classifier.estimator.LaplaceEstimator

public class LaplaceEstimator
extends Estimator

Author:
Roby Joehanes

Field Summary
 
Fields inherited from class edu.ksu.cis.kdd.classifier.estimator.Estimator
owner
 
Constructor Summary
LaplaceEstimator(Classifier o)
           
 
Method Summary
 double estimate(Tuple t, java.lang.Object classValue)
           
 double getM()
          Returns the m.
 void setM(double m)
          Sets the m.
 
Methods inherited from class edu.ksu.cis.kdd.classifier.estimator.Estimator
getOwner, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaplaceEstimator

public LaplaceEstimator(Classifier o)
Method Detail

estimate

public double estimate(Tuple t,
                       java.lang.Object classValue)
Specified by:
estimate in class Estimator
See Also:
edu.ksu.cis.kdd.data.estimator.Estimator#estimate(Tuple, Object)

getM

public double getM()
Returns the m.

Returns:
double

setM

public void setM(double m)
Sets the m.

Parameters:
m - The m to set