类 DiscreteEstimatorBayes
java.lang.Object
weka.estimators.Estimator
weka.classifiers.bayes.net.estimate.DiscreteEstimatorBayes
- 所有已实现的接口:
Serializable
,Cloneable
,Scoreable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
- 直接已知子类:
DiscreteEstimatorFullBayes
Symbolic probability estimator based on symbol counts and a prior.
- 版本:
- $Revision: 1.7 $
- 作者:
- Remco Bouckaert (rrb@xm.co.nz)
- 另请参阅:
-
字段概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addValue
(double data, double weight) Add a new data value to the current estimator.double
getCount
(double data) Get a counts for a valueint
Gets the number of symbols this estimator operates withdouble
getProbability
(double data) Get a probability estimate for a valueReturns the revision string.double
logScore
(int nType, int nCardinality) Gets the log score contribution of this distributionstatic void
Main method for testing this class.toString()
Display a representation of this estimator从类继承的方法 weka.estimators.Estimator
addValues, addValues, addValues, addValues, buildEstimator, buildEstimator, clone, debugTipText, equals, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions, testCapabilities
-
构造器详细资料
-
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. -
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 -
toString
Display a representation of this estimator -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- should contain a sequence of integers which will be treated as symbolic.
-