weka.roughset
Class Rule

java.lang.Object
  |
  +--weka.roughset.Rule

public class Rule
extends Object


Constructor Summary
Rule(Instance i, Reduct r)
           
Rule(Rule r)
           
Rule(weka.roughset.RuleSet r, AttributeValuePairs c)
           
 
Method Summary
 void addCondition(AttributeValuePair p)
           
 void approximateRule(double consistency)
           
 double conditionalProbability()
           
 boolean equals(Object o)
           
 AttributeValuePairs getConditions()
           
 AttributeValuePair getDecision()
           
 double getDecisionValue()
           
 Instances getInstances()
           
 Collection getMatchingInstances()
           
 weka.roughset.RuleSet getRuleSet()
          Get the value of ruleSet.
 int getSupport()
           
 Collection getSupportingInstances()
           
 int hashCode()
           
 boolean matches(Instance i)
           
 int numMatching()
           
 int numSupporting()
           
 double partialSupport(Instance i)
           
 void removeCondition(AttributeValuePair p)
           
 void removeCondition(int i)
           
 void setRuleSet(weka.roughset.RuleSet v)
          Set the value of ruleSet.
 double stabilityStrength()
           
 boolean supports(Instance i)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule(weka.roughset.RuleSet r,
            AttributeValuePairs c)

Rule

public Rule(Rule r)

Rule

public Rule(Instance i,
            Reduct r)
Method Detail

getRuleSet

public weka.roughset.RuleSet getRuleSet()
Get the value of ruleSet.

Returns:
value of ruleSet.

setRuleSet

public void setRuleSet(weka.roughset.RuleSet v)
Set the value of ruleSet.

Parameters:
v - Value to assign to ruleSet.

getConditions

public AttributeValuePairs getConditions()

removeCondition

public void removeCondition(AttributeValuePair p)

removeCondition

public void removeCondition(int i)

addCondition

public void addCondition(AttributeValuePair p)

getDecisionValue

public double getDecisionValue()

getDecision

public AttributeValuePair getDecision()

getSupport

public int getSupport()

getInstances

public Instances getInstances()

getMatchingInstances

public Collection getMatchingInstances()

getSupportingInstances

public Collection getSupportingInstances()

numMatching

public int numMatching()

matches

public boolean matches(Instance i)

supports

public boolean supports(Instance i)

numSupporting

public int numSupporting()

partialSupport

public double partialSupport(Instance i)

conditionalProbability

public double conditionalProbability()

stabilityStrength

public double stabilityStrength()

approximateRule

public void approximateRule(double consistency)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object