public class Head extends LiteralSet
| Constructor and Description | 
|---|
| Head()Constructor without storing the counter-instances. | 
| Head(Instances instances)Constructor storing the counter-instances. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
addElement, clone, contains, counterInstance, counterInstance, enumerateLiterals, getCounterInstancesFrequency, getCounterInstancesNumber, getLastLiteral, getType, hasMaxCounterInstances, isEmpty, negationIncludedIn, numLiterals, overFrequencyThreshold, upDatepublic Head()
public Head(Instances instances)
instances - The dataset.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()