|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.Trail
net.sf.myra.framework.DefaultTrail
net.sf.myra.datamining.Rule
public class Rule
This class represents a classification rule, which is built from ant tours on the problem construction graph.
Constructor Summary | |
---|---|
Rule(int size,
Label prototype)
Creates a new Rule instance. |
|
Rule(Metadata metadata)
Default constructor. |
Method Summary | |
---|---|
void |
add(net.sf.myra.framework.Vertex<?> vertex)
|
Rule |
clone()
|
boolean |
equals(java.lang.Object o)
|
Term[] |
getAntecedent()
Returns the rule antecedent. |
ConfidenceFactor |
getConfidence()
|
Label |
getConsequent()
Returns the rule consequent. |
boolean |
isCovered(Instance instance)
Checks if this rule covers the specified instance. |
void |
remove(net.sf.myra.framework.Vertex<?> vertex)
|
void |
setConfidence(ConfidenceFactor confidence)
|
void |
setConsequent(Label consequent)
Sets the rule consequent. |
java.lang.String |
toString()
|
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 |
---|
public Rule(Metadata metadata)
public Rule(int size, Label prototype)
Rule
instance.
size
- the maximum size of the rule antecedent.prototype
- the label prototype instance.Method Detail |
---|
public Label getConsequent()
public Term[] getAntecedent()
public void setConsequent(Label consequent)
consequent
- the rule consequent to set.public ConfidenceFactor getConfidence()
public void setConfidence(ConfidenceFactor confidence)
confidence
- the confidence to setpublic void add(net.sf.myra.framework.Vertex<?> vertex)
add
in class net.sf.myra.framework.DefaultTrail
public void remove(net.sf.myra.framework.Vertex<?> vertex)
remove
in class net.sf.myra.framework.DefaultTrail
public boolean isCovered(Instance instance)
instance
- the instance to check.
true
if this rule covers the specified instances;
false
otherwise.public java.lang.String toString()
toString
in class net.sf.myra.framework.Trail
public Rule clone()
clone
in class net.sf.myra.framework.DefaultTrail
public boolean equals(java.lang.Object o)
equals
in class net.sf.myra.framework.DefaultTrail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |