|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.associations.tertius.LiteralSet | +--weka.associations.tertius.Body
Class representing the body of a rule.
Constructor Summary | |
Body()
Constructor without storing the counter-instances. |
|
Body(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 body. |
boolean |
isIncludedIn(Rule otherRule)
Test if this Body is included in a rule. |
java.lang.String |
toString()
Gives a String representation of this set of literals as a conjunction. |
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 Body()
public Body(Instances instances)
instances
- The dataset.Method Detail |
public boolean canKeep(Instance instance, Literal newLit)
canKeep
in class LiteralSet
instance
- The instance to test.newLit
- The new literal.
public boolean isIncludedIn(Rule otherRule)
isIncludedIn
in class LiteralSet
otherRule
- The rule to test.
public java.lang.String toString()
toString
in class LiteralSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London