Documentation of 'ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count.Rules' Java class
Rules
ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count

Class Rules



  • public class Rules
    extends java.lang.Object
    This class represents a list of association rules, where itemsets are array of integers.
    See Also:
    Itemset, Rule
    • Constructor Summary

      Constructors 
      Constructor and Description
      Rules(java.lang.String name)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRule(Rule rule)
      Add a rule to this list of rules
      java.util.List<Rule> getRules()
      Get the list of rules.
      int getRulesCount()
      Get the number of rules in this list of rules
      void printRules(int databaseSize)
      Print all the rules in this list to System.out.
      void sortByConfidence()
      Sort the rules by confidence
      java.lang.String toString(int databaseSize)
      Return a string representation of this list of rules
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rules

        public Rules(java.lang.String name)
        Constructor
        Parameters:
        name - a name for this list of association rules (string)
    • Method Detail

      • sortByConfidence

        public void sortByConfidence()
        Sort the rules by confidence
      • printRules

        public void printRules(int databaseSize)
        Print all the rules in this list to System.out.
        Parameters:
        databaseSize - the number of transactions in the transaction database where the rules were found
      • toString

        public java.lang.String toString(int databaseSize)
        Return a string representation of this list of rules
        Parameters:
        databaseSize - the number of transactions in the database where the rules were found.
        Returns:
        a string
      • addRule

        public void addRule(Rule rule)
        Add a rule to this list of rules
        Parameters:
        rule - the rule to be added
      • getRulesCount

        public int getRulesCount()
        Get the number of rules in this list of rules
        Returns:
        the number of rules
      • getRules

        public java.util.List<Rule> getRules()
        Get the list of rules.
        Returns:
        a list of rules.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.