程序包 weka.estimators
类 KDConditionalEstimator
java.lang.Object
weka.estimators.KDConditionalEstimator
- 所有已实现的接口:
RevisionHandler
,ConditionalEstimator
Conditional probability estimator for a numeric domain conditional upon
a discrete domain (utilises separate kernel estimators for each discrete
conditioning value).
- 版本:
- $Revision: 1.8 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addValue
(double data, double given, double weight) Add a new data value to the current estimator.getEstimator
(double given) Get a probability estimator for a valuedouble
getProbability
(double data, double given) Get a probability estimate for a valueReturns the revision string.static void
Main method for testing this class.toString()
Display a representation of this estimator
-
构造器详细资料
-
KDConditionalEstimator
public KDConditionalEstimator(int numCondSymbols, double precision) Constructor- 参数:
numCondSymbols
- the number of conditioning symbolsprecision
- the precision to which numeric values are given. For example, if the precision is stated to be 0.1, the values in the interval (0.25,0.35] are all treated as 0.3.
-
-
方法详细资料
-
addValue
public void addValue(double data, double given, double weight) Add a new data value to the current estimator.- 指定者:
addValue
在接口中ConditionalEstimator
- 参数:
data
- the new data valuegiven
- the new value that data is conditional uponweight
- the weight assigned to the data value
-
getEstimator
Get a probability estimator for a value- 指定者:
getEstimator
在接口中ConditionalEstimator
- 参数:
given
- the new value that data is conditional upon- 返回:
- the estimator for the supplied value given the condition
-
getProbability
public double getProbability(double data, double given) Get a probability estimate for a value- 指定者:
getProbability
在接口中ConditionalEstimator
- 参数:
data
- the value to estimate the probability ofgiven
- the new value that data is conditional upon- 返回:
- the estimated probability of the supplied value
-
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 pairs of integers which will be treated as numeric, symbolic.
-