|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexternal.modified.SET
public class 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(laur.dm.ar.Itemset itemset)
Return the support for a given itemset. |
static void |
initializeSET(SET supports,
double minSupport,
java.util.ArrayList itemsets)
MOD: New interface to class needed, as TTM Testbench does not use cacheReader. |
static void |
initializeSET(SET supports,
double minSupport,
laur.dm.ar.DBCacheReader cacheReader)
Fills a SET with all frequent itemsets read from cacheReader that have support greater than
min_support |
void |
insert(laur.dm.ar.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(laur.dm.ar.Itemset itemset)
itemset
- the itemset to be inserted
java.lang.IllegalArgumentException
- itemset
is null
or is emptypublic double getSupport(laur.dm.ar.Itemset itemset) throws laur.dm.ar.SETException
itemset
- the itemset for which we want to obtain the support
java.lang.IllegalArgumentException
- itemset
is null
or is empty
laur.dm.ar.SETException
- itemset
not found in SETpublic java.util.ArrayList getLargeItemsets()
public java.util.ArrayList getItemsets()
public static void initializeSET(SET supports, double minSupport, java.util.ArrayList itemsets)
min_support
supports
- The SET to be filledminSupport
- Minimum supportitemsets
- List of itemsetspublic static void initializeSET(SET supports, double minSupport, laur.dm.ar.DBCacheReader cacheReader)
cacheReader
that have support greater than
min_support
supports
- 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.Object
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |