|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.learner.associations.fpgrowth.FPTreeNode
public class FPTreeNode
A node in the FPTree.
| Field Summary | |
|---|---|
protected java.util.Map<Item,FPTreeNode> |
children
|
protected FPTreeNode |
father
|
protected FrequencyStack |
frequencies
|
protected Item |
nodeItem
|
protected FPTreeNode |
sibling
|
| Constructor Summary | |
|---|---|
FPTreeNode()
|
|
FPTreeNode(FPTreeNode father,
Item nodeItem)
|
|
| Method Summary | |
|---|---|
void |
addItemSet(java.util.Collection<Item> itemSet,
java.util.Map<Item,Header> headerTable,
int weight)
This method only works at recursiondepth 0, therefore may only be used for tree constructing. |
FPTreeNode |
createChildNode(Item nodeItem)
this method creates a new childnode of this node, representing the node item |
FPTreeNode |
getChild()
This method returns the first child. |
java.util.Map<Item,FPTreeNode> |
getChildren()
This returns the map, which maps the child nodes on items. |
FPTreeNode |
getFather()
Returns the father of this node or null if node is root |
int |
getFrequency(int height)
this returns the frequency of the node in current recursion |
FPTreeNode |
getLastSibling()
Returns the last node of the chain of nodes representing the same item as this node |
Item |
getNodeItem()
this returns the item, this node represents |
FPTreeNode |
getSibling()
Returns the next node representing the same item as this node. |
boolean |
hasFather()
Returns true if node has father. |
boolean |
hasSibling()
Returns true if this node is not the last one in the chain of nodes representing the same item as this node. |
void |
increaseFrequency(int recursionDepth,
int value)
This method increases the frequency of this current node by the given weight in given recusionDepth |
void |
popFrequency(int height)
This method clears the frequency stack on top |
void |
setSibling(FPTreeNode sibling)
This method sets the next node in the chain of node representing the same item as this node |
java.lang.String |
toString(int recursionDepth)
|
java.lang.String |
toString(java.lang.String abs,
int recursionDepth)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FrequencyStack frequencies
protected Item nodeItem
protected FPTreeNode sibling
protected FPTreeNode father
protected java.util.Map<Item,FPTreeNode> children
| Constructor Detail |
|---|
public FPTreeNode()
public FPTreeNode(FPTreeNode father,
Item nodeItem)
| Method Detail |
|---|
public void addItemSet(java.util.Collection<Item> itemSet,
java.util.Map<Item,Header> headerTable,
int weight)
itemSet - the sorted set of itemsheaderTable - gives the headertable for finding other nodes of an itempublic FPTreeNode getFather()
public boolean hasFather()
public FPTreeNode getSibling()
public FPTreeNode getLastSibling()
public void setSibling(FPTreeNode sibling)
sibling - is the next node in the chainpublic boolean hasSibling()
public void increaseFrequency(int recursionDepth,
int value)
value - the frequency is increased by this valuepublic void popFrequency(int height)
public int getFrequency(int height)
public Item getNodeItem()
public java.util.Map<Item,FPTreeNode> getChildren()
public FPTreeNode getChild()
public FPTreeNode createChildNode(Item nodeItem)
nodeItem - the item, represented by the new nodepublic java.lang.String toString(int recursionDepth)
public java.lang.String toString(java.lang.String abs,
int recursionDepth)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||