public class FrequentItemsets
extends java.lang.Object
This class implements the algorithm to find the large itemsets of a dataset
Constructor and Description |
---|
FrequentItemsets() |
Modifier and Type | Method and Description |
---|---|
static void |
computeCandidates()
It computes the candidate itemsets from lastCandidates and saves them into array candidates
|
static void |
computeLarge1Itemsets(int[] numValues)
It computes the large 1-itemsets from the instances array and it saves them into the array lastCandidates
|
static java.util.Vector<Itemset> |
getFrequentItemsets(int[][] examples,
int[] numValues)
It computes the frequent itemsets and returns them
|
public static java.util.Vector<Itemset> getFrequentItemsets(int[][] examples, int[] numValues)
It computes the frequent itemsets and returns them
examples
- matrix of instancesnumValues
- number of different values of each attributepublic static void computeLarge1Itemsets(int[] numValues)
It computes the large 1-itemsets from the instances array and it saves them into the array lastCandidates
numValues
- number of different values of each attributepublic static void computeCandidates()
It computes the candidate itemsets from lastCandidates and saves them into array candidates