|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--laur.dm.ar.SET
Implements a Set Enumeration Tree, which is a prefix tree used for storing and retrieving itemset information.
| Constructor Summary | |
SET()
Create a new empty SET. |
|
| Method Summary | |
java.util.ArrayList |
getItemsets()
Return the itemsets of the SET. |
java.util.ArrayList |
getLargeItemsets()
Return the maximal itemsets of the SET. |
double |
getSupport(Itemset itemset)
Return the support for a given itemset. |
static void |
initializeSET(SET supports,
double minSupport,
DBCacheReader cacheReader)
Fills a SET with all frequent itemsets read from cacheReader that have support greater than
min_support |
void |
insert(Itemset itemset)
Insert a new itemset in the SET. |
static void |
main(java.lang.String[] args)
sample usage and testing |
java.lang.String |
toString()
Return a string representation of the SET. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SET()
| Method Detail |
public void insert(Itemset itemset)
itemset - the itemset to be insertedjava.lang.IllegalArgumentException - itemset is null
or is empty
public double getSupport(Itemset itemset)
throws SETException
itemset - the itemset for which we want to obtain the supportjava.lang.IllegalArgumentException - itemset is null
or is emptySETException - itemset not found in SETpublic java.util.ArrayList getLargeItemsets()
public java.util.ArrayList getItemsets()
public static void initializeSET(SET supports,
double minSupport,
DBCacheReader cacheReader)
cacheReader that have support greater than
min_supportsupports - the SET to be filledminSupport - the minimum support thresholdcacheReader - a DBCacheReader object from which
the itemsets can be readpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||