weka.roughset
Class Rule
java.lang.Object
|
+--weka.roughset.Rule
- public class Rule
- extends Object
Rule
public Rule(weka.roughset.RuleSet r,
AttributeValuePairs c)
Rule
public Rule(Rule r)
Rule
public Rule(Instance i,
Reduct r)
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