Documentation of 'ca.pfv.spmf.algorithms.sequential_rules.cmdeogun.Rule' Java class
Rule
ca.pfv.spmf.algorithms.sequential_rules.cmdeogun

Class Rule



  • public class Rule
    extends java.lang.Object
    This class represents a sequential rule found by the CMDeo algorithm.
    See Also:
    AlgoCMDeogun, Itemset
    • Constructor Summary

      Constructors 
      Constructor and Description
      Rule(Itemset itemset1, Itemset itemset2)
      Constructor
    • Constructor Detail

      • Rule

        public Rule(Itemset itemset1,
                    Itemset itemset2)
        Constructor
        Parameters:
        itemset1 - the left itemset
        itemset2 - the right itemset
    • Method Detail

      • getItemset1

        public Itemset getItemset1()
        Get the antecedent of the rule (left itemset)
        Returns:
        an Itemset
      • getItemset2

        public Itemset getItemset2()
        Get the consequent of the rule (right itemset)
        Returns:
        an Itemset
      • getAbsoluteSupport

        public double getAbsoluteSupport(int sequencecount)
        Get the support of this rule as a percentage.
        Parameters:
        sequencecount - the number of sequence in the sequence database
        Returns:
        the support as a double
      • getRelativeSupport

        public int getRelativeSupport()
      • getConfidence

        public double getConfidence()
        Get the confidence of this rule.
        Returns:
        a double value.
      • print

        public void print()
        Print this rule to System.out
      • toString

        public java.lang.String toString()
        Get a string representation of this rule.
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.