| java.lang.Object weka.estimators.Estimator weka.classifiers.bayes.net.estimate.DiscreteEstimatorBayes
All known Subclasses: weka.classifiers.bayes.net.estimate.DiscreteEstimatorFullBayes,
DiscreteEstimatorBayes | public class DiscreteEstimatorBayes extends Estimator implements Scoreable(Code) | | Symbolic probability estimator based on symbol counts and a prior.
author: Remco Bouckaert (rrb@xm.co.nz) version: $Revision: 1.6 $ |
m_Counts | protected double[] m_Counts(Code) | | Hold the counts
|
m_SumOfCounts | protected double m_SumOfCounts(Code) | | Hold the sum of counts
|
m_fPrior | protected double m_fPrior(Code) | | Holds the prior probability
|
m_nSymbols | protected int m_nSymbols(Code) | | Holds number of symbols in distribution
|
serialVersionUID | final static long serialVersionUID(Code) | | for serialization
|
DiscreteEstimatorBayes | public DiscreteEstimatorBayes(int nSymbols, double fPrior)(Code) | | Constructor
Parameters: nSymbols - the number of possible symbols (remember to include 0) Parameters: fPrior - |
addValue | public void addValue(double data, double weight)(Code) | | Add a new data value to the current estimator.
Parameters: data - the new data value Parameters: weight - the weight assigned to the data value |
getCount | public double getCount(double data)(Code) | | Get a counts for a value
Parameters: data - the value to get the counts for the count of the supplied value |
getNumSymbols | public int getNumSymbols()(Code) | | Gets the number of symbols this estimator operates with
the number of estimator symbols |
getProbability | public double getProbability(double data)(Code) | | Get a probability estimate for a value
Parameters: data - the value to estimate the probability of the estimated probability of the supplied value |
logScore | public double logScore(int nType, int nCardinality)(Code) | | Gets the log score contribution of this distribution
Parameters: nType - score type the score |
main | public static void main(String[] argv)(Code) | | Main method for testing this class.
Parameters: argv - should contain a sequence of integers whichwill be treated as symbolic. |
toString | public String toString()(Code) | | Display a representation of this estimator
a string representation of the estimator |
Fields inherited from weka.estimators.Estimator | protected double m_classValueIndex(Code)(Java Doc)
|
Methods inherited from weka.estimators.Estimator | public void addValue(double data, double weight)(Code)(Java Doc) public void addValues(Instances data, int attrIndex) throws Exception(Code)(Java Doc) public void addValues(Instances data, int attrIndex, double min, double max, double factor) throws Exception(Code)(Java Doc) public void addValues(Instances data, int attrIndex, int classIndex, int classValue) throws Exception(Code)(Java Doc) public void addValues(Instances data, int attrIndex, int classIndex, int classValue, double min, double max) throws Exception(Code)(Java Doc) public static void buildEstimator(Estimator est, String[] options, boolean isIncremental) throws Exception(Code)(Java Doc) public static void buildEstimator(Estimator est, Instances instances, int attrIndex, int classIndex, int classValueIndex, boolean isIncremental) throws Exception(Code)(Java Doc) public static Estimator clone(Estimator model) throws Exception(Code)(Java Doc) public String debugTipText()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public static Estimator forName(String name, String[] options) throws Exception(Code)(Java Doc) public Capabilities getCapabilities()(Code)(Java Doc) public boolean getDebug()(Code)(Java Doc) public String[] getOptions()(Code)(Java Doc) abstract public double getProbability(double data)(Code)(Java Doc) public Enumeration listOptions()(Code)(Java Doc) public static Estimator[] makeCopies(Estimator model, int num) throws Exception(Code)(Java Doc) public static Estimator makeCopy(Estimator model) throws Exception(Code)(Java Doc) public void setDebug(boolean debug)(Code)(Java Doc) public void setOptions(String[] options) throws Exception(Code)(Java Doc) public void testCapabilities(Instances data, int attrIndex) throws Exception(Code)(Java Doc)
|
|
|