public class ARM extends Object
| Constructor and Description |
|---|
ARM(int[][] itemsets,
double minSupport)
Constructor.
|
ARM(int[][] itemsets,
int minSupport)
Constructor.
|
ARM(int[] frequency,
int minSupport)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int[] itemset)
Add an item set to the database.
|
List<AssociationRule> |
learn(double confidence)
Mines the association rules.
|
long |
learn(double confidence,
PrintStream out)
Mines the association rules.
|
public ARM(int[] frequency, int minSupport)
add(int[]) during the
second scan of the database. In this way, we don't need load the whole database
into the main memory.frequency - the frequency of single items.minSupport - the required minimum support of item sets in terms of frequency.public ARM(int[][] itemsets, double minSupport)
itemsets - the item set dataset. Each row is a item set,
which may have different length. The item identifiers have to be in [0, n),
where n is the number of items. Item set should NOT contain duplicated
items.minSupport - the required minimum support of item sets in
terms of percentage.public ARM(int[][] itemsets, int minSupport)
itemsets - the item set database. Each row is a item set, which
may have different length. The item identifiers have to be in [0, n),
where n is the number of items. Item set should NOT contain duplicated
items. Note that it is reordered after the call.minSupport - the required minimum support of item sets in
terms of frequency.public void add(int[] itemset)
itemset - an item set, which should NOT contain duplicated items.
Note that it is reordered after the call.public long learn(double confidence,
PrintStream out)
confidence - the confidence threshold for association rules.public List<AssociationRule> learn(double confidence)
confidence - the confidence threshold for association rules.Copyright © 2015. All rights reserved.