Class 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 Detail

      • consequent

        private Itemset consequent
        Consequent itemset
      • antecedent

        private Itemset antecedent
        Consequent itemset
      • union

        private Itemset union
        Union of consequent and consequent
      • measure

        private double measure
        Measure of the Rule.
    • Constructor Detail

      • AssociationRule

        public AssociationRule​(Itemset union,
                               Itemset consequent,
                               Itemset antecedent,
                               double measure)
        Constructor.
        Parameters:
        union - Union of consequent and consequent
        consequent - Consequent of the rule
        antecedent - Antecedent of the rule
        measure - Value of the interest measure
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • appendTo

        public java.lang.StringBuilder appendTo​(java.lang.StringBuilder buf,
                                                VectorFieldTypeInformation<BitVector> meta)
        Append to a string buffer.
        Parameters:
        buf - Buffer
        meta - Relation metadata (for labels)
        Returns:
        String buffer for chaining.