|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwpi.associations.arminer.SET
SET.java
Implements a Set Enumeration Tree, which is a prefix tree used for storing and retrieving itemset information.
Nested Class Summary | |
private class |
SET.HashNode
|
Field Summary | |
private int |
level
|
private SET.HashNode |
root
|
Constructor Summary | |
SET()
Create a new empty SET. |
Method Summary | |
java.util.Vector |
getItemsets()
Return the itemsets of the SET. |
java.util.Vector |
getLargeItemsets()
Return the maximal itemsets of the SET. |
float |
getSupport(ARMinerItemset itemset)
Return the support for a given itemset. |
void |
insert(ARMinerItemset itemset)
Insert a new itemset in the SET. |
static void |
main(java.lang.String[] args)
for testing purposes only !!! |
java.lang.String |
toString()
Return a string representation of the SET. |
private void |
traverseGatherAll(SET.HashNode node,
ARMinerItemset itemset,
java.util.Vector vector)
|
private void |
traverseGatherLeaves(SET.HashNode node,
ARMinerItemset itemset,
java.util.Vector vector)
|
private void |
traversePrint(SET.HashNode node,
java.lang.StringBuffer sb)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private SET.HashNode root
private int level
Constructor Detail |
public SET()
Method Detail |
public void insert(ARMinerItemset itemset)
itemset
- the itemset to be inserted
java.lang.IllegalArgumentException
- itemset
is null
or is emptypublic float getSupport(ARMinerItemset itemset) throws SETException
itemset
- the itemset for which we want to obtain the support
java.lang.IllegalArgumentException
- itemset
is null
or is empty
SETException
- itemset
not found in SETpublic java.util.Vector getLargeItemsets()
public java.util.Vector getItemsets()
private void traverseGatherLeaves(SET.HashNode node, ARMinerItemset itemset, java.util.Vector vector)
private void traverseGatherAll(SET.HashNode node, ARMinerItemset itemset, java.util.Vector vector)
private void traversePrint(SET.HashNode node, java.lang.StringBuffer sb)
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |