ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count
Class Rules
- java.lang.Object
-
- ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count.Rules
-
-
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 voidaddRule(Rule rule)Add a rule to this list of rulesjava.util.List<Rule>getRules()Get the list of rules.intgetRulesCount()Get the number of rules in this list of rulesvoidprintRules(int databaseSize)Print all the rules in this list to System.out.voidsortByConfidence()Sort the rules by confidencejava.lang.StringtoString(int databaseSize)Return a string representation of this list of rules
-
-
-
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