net.sf.myra.datamining
Class ProbabilisticRule

java.lang.Object
  extended by net.sf.myra.framework.Trail
      extended by net.sf.myra.framework.DefaultTrail
          extended by net.sf.myra.datamining.Rule
              extended by net.sf.myra.datamining.ProbabilisticRule
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ProbabilisticSequentialRule

public class ProbabilisticRule
extends Rule

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

Constructor Summary
ProbabilisticRule(int size, Label prototype)
          Creates a new Rule instance.
ProbabilisticRule(Metadata metadata)
          Default constructor.
 
Method Summary
 ProbabilisticRule clone()
           
 boolean equals(java.lang.Object o)
           
 Label getConsequent()
          Returns the rule consequent.
 double[] getProbabiblities()
          Returns the class probability array.
 void setConsequent(Label consequent)
          Sets the rule consequent.
 void setProbabiblities(double[] probabiblities)
          Sets the class probability array.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.myra.datamining.Rule
add, getAntecedent, getConfidence, isCovered, remove, setConfidence
 
Methods inherited from class net.sf.myra.framework.DefaultTrail
getLast, getVertices, isEmpty
 
Methods inherited from class net.sf.myra.framework.Trail
getCost, getIteration, getSize, setCost, setIteration
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProbabilisticRule

public ProbabilisticRule(Metadata metadata)
Default constructor.

Parameters:
metadata -

ProbabilisticRule

public ProbabilisticRule(int size,
                         Label prototype)
Creates a new Rule instance.

Parameters:
size - the maximum size of the rule antecedent.
prototype - the label prototype instance.
Method Detail

getConsequent

public final Label getConsequent()
Description copied from class: Rule
Returns the rule consequent.

Overrides:
getConsequent in class Rule
Returns:
the rule consequent.

setConsequent

public final void setConsequent(Label consequent)
Description copied from class: Rule
Sets the rule consequent.

Overrides:
setConsequent in class Rule
Parameters:
consequent - the rule consequent to set.

getProbabiblities

public double[] getProbabiblities()
Returns the class probability array.

Returns:
the class probability array.

setProbabiblities

public void setProbabiblities(double[] probabiblities)
Sets the class probability array.

Parameters:
probabiblities - the class probabiblity array to set.

toString

public java.lang.String toString()
Overrides:
toString in class Rule

clone

public ProbabilisticRule clone()
Overrides:
clone in class Rule

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Rule


Copyright © 2013. All Rights Reserved.