| java.lang.Object weka.estimators.KKConditionalEstimator
KKConditionalEstimator | public class KKConditionalEstimator implements ConditionalEstimator(Code) | | Conditional probability estimator for a numeric domain conditional upon
a numeric domain.
author: Len Trigg (trigg@cs.waikato.ac.nz) version: $Revision: 1.7 $ |
Constructor Summary | |
public | KKConditionalEstimator(double precision) Constructor
Parameters: precision - the precision to which numeric values are given. |
KKConditionalEstimator | public KKConditionalEstimator(double precision)(Code) | | Constructor
Parameters: precision - the precision to which numeric values are given. Forexample, if the precision is stated to be 0.1, the values in theinterval (0.25,0.35] are all treated as 0.3. |
addValue | public void addValue(double data, double given, double weight)(Code) | | Add a new data value to the current estimator.
Parameters: data - the new data value Parameters: given - the new value that data is conditional upon Parameters: weight - the weight assigned to the data value |
getEstimator | public Estimator getEstimator(double given)(Code) | | Get a probability estimator for a value
Parameters: 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)(Code) | | Get a probability estimate for a value
Parameters: data - the value to estimate the probability of Parameters: given - the new value that data is conditional upon the estimated probability of the supplied value |
main | public static void main(String[] argv)(Code) | | Main method for testing this class. Creates some random points
in the range 0 - 100,
and prints out a distribution conditional on some value
Parameters: argv - should contain: seed conditional_value numpoints |
toString | public String toString()(Code) | | Display a representation of this estimator
|
|
|