Class AssociationRuleGeneration.Instance
- java.lang.Object
-
- elki.itemsetmining.associationrules.AssociationRuleGeneration.Instance
-
- Enclosing class:
- AssociationRuleGeneration
public class AssociationRuleGeneration.Instance extends java.lang.Object
Class to run- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private VectorFieldTypeInformation<BitVector>
meta
Metadata for printing.private java.util.ArrayList<AssociationRule>
rules
List of generated rules.private AssociationRuleGeneration.PartialItemset
scratch1
Scratch itemset: antecedent.private AssociationRuleGeneration.PartialItemset
scratch2
Scratch itemset: consequent.private AssociationRuleGeneration.ItemsetSearcher
searcher
Class to search for itemsets via binary search.private int
totalTransactions
Total number of transactions, needed by some measures.
-
Constructor Summary
Constructors Constructor Description Instance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
processSubsets(Itemset itemset, int len, int cur)
AssociationRuleResult
run(FrequentItemsetsResult frequentResult)
Process a set of frequent itemsets.
-
-
-
Field Detail
-
totalTransactions
private int totalTransactions
Total number of transactions, needed by some measures.
-
scratch1
private AssociationRuleGeneration.PartialItemset scratch1
Scratch itemset: antecedent.
-
scratch2
private AssociationRuleGeneration.PartialItemset scratch2
Scratch itemset: consequent.
-
rules
private java.util.ArrayList<AssociationRule> rules
List of generated rules.
-
searcher
private AssociationRuleGeneration.ItemsetSearcher searcher
Class to search for itemsets via binary search.
-
meta
private VectorFieldTypeInformation<BitVector> meta
Metadata for printing.
-
-
Method Detail
-
run
public AssociationRuleResult run(FrequentItemsetsResult frequentResult)
Process a set of frequent itemsets.- Parameters:
frequentResult
- Frequent itemsets.- Returns:
- Association rules
-
processSubsets
private void processSubsets(Itemset itemset, int len, int cur)
-
-