ca.pfv.spmf.algorithms.associationrules.agrawal94_association_rules
Class AssocRule
- java.lang.Object
-
- ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count.Rule
-
- ca.pfv.spmf.algorithms.associationrules.agrawal94_association_rules.AssocRule
-
public class AssocRule extends Rule
This class represent an association rule used by the Agrawal algorithm such that it uses the lift mesure. * It is based on: Agrawal & al. 1994, IBM Research Report RJ9839, June 1994.- See Also:
AlgoAgrawalFaster94,AssocRules
-
-
Constructor Summary
Constructors Constructor and Description AssocRule(int[] itemset1, int[] itemset2, int supportAntecedent, int transactionCount, double confidence, double lift)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetLift()Get the lift of this rule.voidprint()Print this rule to System.out.-
Methods inherited from class ca.pfv.spmf.patterns.rule_itemset_array_integer_with_count.Rule
getAbsoluteSupport, getConfidence, getCoverage, getItemset1, getItemset2, getRelativeSupport, toString
-
-
-
-
Constructor Detail
-
AssocRule
public AssocRule(int[] itemset1, int[] itemset2, int supportAntecedent, int transactionCount, double confidence, double lift)Constructor- Parameters:
itemset1- the antecedent of the rule (an itemset)itemset2- the consequent of the rule (an itemset)supportAntecedent- the coverage of the rule (support of the antecedent)transactionCount- the absolute support of the rule (integer)confidence- the confidence of the rulelift- the lift of the rule
-
-
DMelt 3.0 © DataMelt by jWork.ORG