Class AssociationRule
- java.lang.Object
-
- elki.itemsetmining.associationrules.AssociationRule
-
- All Implemented Interfaces:
java.lang.Comparable<AssociationRule>
public class AssociationRule extends java.lang.Object implements java.lang.Comparable<AssociationRule>
Association Rule- Since:
- 0.7.5
- Author:
- Frederic Sautter
-
-
Field Summary
Fields Modifier and Type Field Description private ItemsetantecedentConsequent itemsetprivate ItemsetconsequentConsequent itemsetprivate doublemeasureMeasure of the Rule.private ItemsetunionUnion of consequent and consequent
-
Constructor Summary
Constructors Constructor Description AssociationRule(Itemset union, Itemset consequent, Itemset antecedent, double measure)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappendTo(java.lang.StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)Append to a string buffer.intcompareTo(AssociationRule o)ItemsetgetAntecedent()Get the antecedent of the rule.ItemsetgetConsequent()Get the consequent of the rule.doublegetMeasure()Get the rule measure.ItemsetgetUnion()Get the union of consequent and consequent of the rule.java.lang.StringtoString()
-
-
-
Method Detail
-
getConsequent
public Itemset getConsequent()
Get the consequent of the rule.- Returns:
- consequent
-
getUnion
public Itemset getUnion()
Get the union of consequent and consequent of the rule.- Returns:
- union
-
getMeasure
public double getMeasure()
Get the rule measure.- Returns:
- measure
-
getAntecedent
public Itemset getAntecedent()
Get the antecedent of the rule.- Returns:
- antecedent
-
compareTo
public int compareTo(AssociationRule o)
- Specified by:
compareToin interfacejava.lang.Comparable<AssociationRule>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
appendTo
public java.lang.StringBuilder appendTo(java.lang.StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)Append to a string buffer.- Parameters:
buf- Buffermeta- Relation metadata (for labels)- Returns:
- String buffer for chaining.
-
-