|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.associations.tertius.LiteralSet
weka.associations.tertius.Head
public class Head
Class representing the head of a rule.
| Constructor Summary | |
|---|---|
Head()
Constructor without storing the counter-instances. |
|
Head(Instances instances)
Constructor storing the counter-instances. |
|
| Method Summary | |
|---|---|
boolean |
canKeep(Instance instance,
Literal newLit)
Test if an instance can be kept as a counter-instance, if a new literal is added to this head. |
java.lang.String |
getRevision()
Returns the revision string. |
boolean |
isIncludedIn(Rule otherRule)
Test if this Head is included in a rule. |
java.lang.String |
toString()
Gives a String representation of this set of literals as a disjunction. |
| Methods inherited from class weka.associations.tertius.LiteralSet |
|---|
addElement, clone, contains, counterInstance, counterInstance, enumerateLiterals, getCounterInstancesFrequency, getCounterInstancesNumber, getLastLiteral, getType, hasMaxCounterInstances, isEmpty, negationIncludedIn, numLiterals, overFrequencyThreshold, upDate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Head()
public Head(Instances instances)
instances - The dataset.| Method Detail |
|---|
public boolean canKeep(Instance instance,
Literal newLit)
canKeep in class LiteralSetinstance - The instance to test.newLit - The new literal.
public boolean isIncludedIn(Rule otherRule)
isIncludedIn in class LiteralSetotherRule - The rule to test.
public java.lang.String toString()
toString in class LiteralSetpublic java.lang.String getRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||