public static class FPGrowth.FPNode extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FPGrowth.FPNode.Translator
Translator class for tree printing.
|
Modifier and Type | Field and Description |
---|---|
(package private) FPGrowth.FPNode[] |
children
Children.
|
(package private) int |
count
Key, weight, and number of children.
|
(package private) static FPGrowth.FPNode[] |
EMPTY_CHILDREN
Constant for leaf nodes.
|
(package private) int |
INITIAL_SIZE
Initial size, after sizes 0 and 1.
|
(package private) int |
key
Key, weight, and number of children.
|
(package private) int |
numchildren
Key, weight, and number of children.
|
(package private) FPGrowth.FPNode |
parent
Parent node and next in sequence.
|
(package private) FPGrowth.FPNode |
sibling
Parent node and next in sequence.
|
private static char[] |
SPACES
Buffer for indentation.
|
Constructor and Description |
---|
FPNode(FPGrowth.FPNode parent,
int key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTo(StringBuilder buf,
FPGrowth.FPNode.Translator t)
Debugging function: build a text representation of the tree.
|
private void |
appendTo(StringBuilder buf,
FPGrowth.FPNode.Translator t,
int depth)
Debugging function: build a text representation of the tree.
|
private void |
ensureSize()
Ensure we have enough storage.
|
void |
insert(FPGrowth.FPTree tree,
int[] buf,
int i,
int l,
int weight)
Insert an itemset into the tree.
|
void |
reduceMemory()
Release the memory occupied for the parent-to-child navigation, which is
no longer needed after building the tree (only child-to-parent is needed
in extracting itemsets).
|
FPGrowth.FPNode parent
FPGrowth.FPNode sibling
int key
int count
int numchildren
FPGrowth.FPNode[] children
static final FPGrowth.FPNode[] EMPTY_CHILDREN
final int INITIAL_SIZE
private static final char[] SPACES
public FPNode(FPGrowth.FPNode parent, int key)
parent
- Parent nodekey
- Keypublic void insert(FPGrowth.FPTree tree, int[] buf, int i, int l, int weight)
buf
- Itemset bufferi
- Current indexl
- Lengthweight
- Weightprivate void ensureSize()
public void appendTo(StringBuilder buf, FPGrowth.FPNode.Translator t)
buf
- Output buffert
- Translator to user-understandable itemsprivate void appendTo(StringBuilder buf, FPGrowth.FPNode.Translator t, int depth)
buf
- Output buffert
- Translator to user-understandable itemsdepth
- Current depthpublic void reduceMemory()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.