com.rapidminer.operator.learner.subgroups.utility
Class Precision

java.lang.Object
  extended by com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
      extended by com.rapidminer.operator.learner.subgroups.utility.Precision
All Implemented Interfaces:
java.io.Serializable

public class Precision
extends UtilityFunction

Calculates the precision of a rule.

Author:
Tobias Malbrecht
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
ACCURACY, BIAS, BINOMIAL, COVERAGE, FUNCTIONS, LIFT, NEGATIVE_CLASS, ODDS, ODDS_RATIO, POSITIVE_CLASS, PRECISION, SQUARED, totalNegativeWeight, totalPositiveWeight, totalWeight, WRACC
 
Constructor Summary
Precision(double totalWeight, double totalPositiveWeight)
           
 
Method Summary
 java.lang.String getAbbreviation()
           
 java.lang.String getName()
           
 double optimisticEstimate(Hypothesis hypothesis)
           
 double utility(Rule rule)
           
 
Methods inherited from class com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
getTotalNegativeWeight, getTotalPositiveWeight, getTotalWeight, getUtilityFunction, getUtilityFunctionClass, getUtilityFunctionClasses, getUtilityFunctions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Precision

public Precision(double totalWeight,
                 double totalPositiveWeight)
Method Detail

utility

public double utility(Rule rule)
Specified by:
utility in class UtilityFunction

optimisticEstimate

public double optimisticEstimate(Hypothesis hypothesis)
Specified by:
optimisticEstimate in class UtilityFunction

getName

public java.lang.String getName()
Specified by:
getName in class UtilityFunction

getAbbreviation

public java.lang.String getAbbreviation()
Specified by:
getAbbreviation in class UtilityFunction


Copyright © 2001-2009 by Rapid-I