类 Head
java.lang.Object
weka.associations.tertius.LiteralSet
weka.associations.tertius.Head
- 所有已实现的接口:
Serializable
,Cloneable
,RevisionHandler
Class representing the head of a rule.
- 版本:
- $Revision: 1.6 $
- 作者:
- Amelie Deltour
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Test if an instance can be kept as a counter-instance, if a new literal is added to this head.Returns the revision string.boolean
isIncludedIn
(Rule otherRule) Test if this Head is included in a rule.toString()
Gives a String representation of this set of literals as a disjunction.从类继承的方法 weka.associations.tertius.LiteralSet
addElement, clone, contains, counterInstance, counterInstance, enumerateLiterals, getCounterInstancesFrequency, getCounterInstancesNumber, getLastLiteral, getType, hasMaxCounterInstances, isEmpty, negationIncludedIn, numLiterals, overFrequencyThreshold, upDate
-
构造器详细资料
-
Head
public Head()Constructor without storing the counter-instances. -
Head
Constructor storing the counter-instances.- 参数:
instances
- The dataset.
-
-
方法详细资料
-
canKeep
Test if an instance can be kept as a counter-instance, if a new literal is added to this head.- 指定者:
canKeep
在类中LiteralSet
- 参数:
instance
- The instance to test.newLit
- The new literal.- 返回:
- True if the instance is still a counter-instance (if the negation of the new literal satisfies the instance).
-
isIncludedIn
Test if this Head is included in a rule. It is the literals of this Head are contained in the head of the other rule, or if their negation is included in the body of the other rule.- 指定者:
isIncludedIn
在类中LiteralSet
- 参数:
otherRule
- The rule to test.- 返回:
- True if this set of literals is included in the rule.
-
toString
Gives a String representation of this set of literals as a disjunction.- 指定者:
toString
在类中LiteralSet
-
getRevision
Returns the revision string.- 返回:
- the revision
-