类 DiscreteEstimatorBayes

java.lang.Object
weka.estimators.Estimator
weka.classifiers.bayes.net.estimate.DiscreteEstimatorBayes
所有已实现的接口:
Serializable, Cloneable, Scoreable, CapabilitiesHandler, OptionHandler, RevisionHandler
直接已知子类:
DiscreteEstimatorFullBayes

public class DiscreteEstimatorBayes extends Estimator implements Scoreable
Symbolic probability estimator based on symbol counts and a prior.
版本:
$Revision: 1.7 $
作者:
Remco Bouckaert (rrb@xm.co.nz)
另请参阅:
  • 构造器详细资料

    • DiscreteEstimatorBayes

      public DiscreteEstimatorBayes(int nSymbols, double fPrior)
      Constructor
      参数:
      nSymbols - the number of possible symbols (remember to include 0)
      fPrior -
  • 方法详细资料

    • addValue

      public void addValue(double data, double weight)
      Add a new data value to the current estimator.
      覆盖:
      addValue 在类中 Estimator
      参数:
      data - the new data value
      weight - the weight assigned to the data value
    • getProbability

      public double getProbability(double data)
      Get a probability estimate for a value
      指定者:
      getProbability 在类中 Estimator
      参数:
      data - the value to estimate the probability of
      返回:
      the estimated probability of the supplied value
    • getCount

      public double getCount(double data)
      Get a counts for a value
      参数:
      data - the value to get the counts for
      返回:
      the count of the supplied value
    • getNumSymbols

      public int getNumSymbols()
      Gets the number of symbols this estimator operates with
      返回:
      the number of estimator symbols
    • logScore

      public double logScore(int nType, int nCardinality)
      Gets the log score contribution of this distribution
      指定者:
      logScore 在接口中 Scoreable
      参数:
      nType - score type
      返回:
      the score
    • toString

      public String toString()
      Display a representation of this estimator
      覆盖:
      toString 在类中 Object
      返回:
      a string representation of the estimator
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] argv)
      Main method for testing this class.
      参数:
      argv - should contain a sequence of integers which will be treated as symbolic.