Class TotalSupportTree
java.lang.Object
smile.association.TotalSupportTree
Total support tree is a kind of compressed set enumeration tree so that we
can generate association rules in a storage efficient way.
References
- Frans Coenen, Paul Leng, and Shakil Ahmed. Data Structure for Association Rule Mining: T-Trees and P-Trees. IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 16(6):774-778, 2004.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSupport(int[] itemset) Returns the support value for the given item set.iterator()root()Returns the root node.intsize()Returns the number transactions in the database.stream()Mines the frequent item sets.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
TotalSupportTree
-
-
Method Details
-
size
public int size()Returns the number transactions in the database.- Returns:
- the number transactions in the database.
-
root
-
iterator
-
getSupport
public int getSupport(int[] itemset) Returns the support value for the given item set.- Parameters:
itemset- the given item set. The items in the set has to be in the descending order according to their frequency.- Returns:
- the support value (0 if not found)
-
stream
-