net.sf.myra.datamining.model
Class ProbabilisticRuleList

java.lang.Object
  extended by net.sf.myra.datamining.model.AbstractRuleModel
      extended by net.sf.myra.datamining.model.ProbabilisticRuleModel
          extended by net.sf.myra.datamining.model.ProbabilisticRuleList
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ProbabilisticRuleList>, Model, ProbabilisticModel

public class ProbabilisticRuleList
extends ProbabilisticRuleModel
implements java.lang.Comparable<ProbabilisticRuleList>

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.myra.datamining.model.AbstractRuleModel
AbstractRuleModel.DefaultGatherer
 
Constructor Summary
ProbabilisticRuleList()
           
 
Method Summary
 int compareTo(ProbabilisticRuleList o)
           
 java.lang.Comparable getConfidence()
          Returns the cost of this rule list.
 java.util.List<Rule> getRules()
           
 double[] probabilities(Instance instance)
           
 void setConfidence(java.lang.Comparable confidence)
          Sets the confidence value of this rule list.
 
Methods inherited from class net.sf.myra.datamining.model.ProbabilisticRuleModel
classify
 
Methods inherited from class net.sf.myra.datamining.model.AbstractRuleModel
add, getDefault, getGatherer, getMajority, hasDefault, remove, setMajority, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.myra.datamining.Model
getGatherer
 

Constructor Detail

ProbabilisticRuleList

public ProbabilisticRuleList()
Method Detail

getRules

public java.util.List<Rule> getRules()
Overrides:
getRules in class AbstractRuleModel

probabilities

public double[] probabilities(Instance instance)
Specified by:
probabilities in interface ProbabilisticModel

getConfidence

public java.lang.Comparable getConfidence()
Returns the cost of this rule list.

Returns:
the cost of this rule list.

setConfidence

public void setConfidence(java.lang.Comparable confidence)
Sets the confidence value of this rule list.

Parameters:
confidence - the confidence value to set.

compareTo

public int compareTo(ProbabilisticRuleList o)
Specified by:
compareTo in interface java.lang.Comparable<ProbabilisticRuleList>


Copyright © 2013. All Rights Reserved.