
public static class FPGrowth.FPTree extends FPGrowth.FPNode
| Modifier and Type | Class and Description |
|---|---|
static interface |
FPGrowth.FPTree.Collector
Interface for collecting frequent itemsets found.
|
FPGrowth.FPNode.Translator| Modifier and Type | Field and Description |
|---|---|
(package private) FPGrowth.FPNode[] |
header
Header table
|
(package private) int |
nodes
Number of nodes in the tree (statistics only).
|
children, count, EMPTY_CHILDREN, INITIAL_SIZE, key, numchildren, parent, sibling| Constructor and Description |
|---|
FPTree(int items)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
extract(int minsupp,
int minlength,
int maxlength,
boolean destruct,
FPGrowth.FPTree.Collector col)
Extract itemsets ending in the given item.
|
private void |
extract(int minsupp,
int minlength,
int maxlength,
int item,
int[] postfix,
int plen,
int[] buf2,
int[] buf3,
boolean destruct,
FPGrowth.FPTree.Collector col)
Extract itemsets ending in the given item.
|
private void |
extractLinear(int supp,
int minsupp,
int minlength,
int maxlength,
int item,
int[] postfix,
int plen,
int[] buf2,
FPGrowth.FPTree.Collector col)
Extract itemsets from a linear tree.
|
void |
insert(int[] buf,
int i,
int l,
int weight)
Insert an itemset into the tree.
|
void |
logStatistics()
Output some statistics to logging.
|
FPGrowth.FPNode |
newNode(FPGrowth.FPNode parent,
int label)
Create a new node of the FP-tree, linking it into the header table.
|
appendTo, insert, reduceMemoryFPGrowth.FPNode[] header
int nodes
public FPTree(int items)
items - Number of items in header tablepublic void insert(int[] buf,
int i,
int l,
int weight)
buf - Bufferi - Start position in bufferl - End position in bufferweight - Weightpublic FPGrowth.FPNode newNode(FPGrowth.FPNode parent, int label)
parent - Parent nodelabel - Node labelpublic void extract(int minsupp,
int minlength,
int maxlength,
boolean destruct,
FPGrowth.FPTree.Collector col)
minsupp - Minimum supportminlength - Minimum lengthmaxlength - Maximum lengthdestruct - Remove nodescol - Itemset collectorprivate void extract(int minsupp,
int minlength,
int maxlength,
int item,
int[] postfix,
int plen,
int[] buf2,
int[] buf3,
boolean destruct,
FPGrowth.FPTree.Collector col)
minsupp - Minimum supportminlength - Minimum lengthmaxlength - Maximum lengthitem - Current itempostfix - Items to appendplen - Postfix lengthbuf2 - Scratch bufferbuf3 - Scratch bufferdestruct - Remove nodescol - Itemset collectorprivate void extractLinear(int supp,
int minsupp,
int minlength,
int maxlength,
int item,
int[] postfix,
int plen,
int[] buf2,
FPGrowth.FPTree.Collector col)
supp - Current supportminsupp - Minimum supportminlength - Minimum lengthmaxlength - Maximum lengthitem - Current itempostfix - Postfix for extracted itemsetsplen - Postfix lengthbuf2 - Scratch buffercol - Output collectorpublic void logStatistics()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.