ca.pfv.spmf.algorithms.frequentpatterns.uapriori
Class ItemsetsUApriori
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.uapriori.ItemsetsUApriori
-
public class ItemsetsUApriori extends java.lang.ObjectThis class represents a set of itemsets found in an uncertain database, as used by the UApriori algorithm uncertain itemset mining. They are ordered by size. For example, level 1 means itemsets of size 1 (that contains 1 item).- See Also:
AlgoUApriori,ItemUApriori,ItemsetUApriori
-
-
Constructor Summary
Constructors Constructor and Description ItemsetsUApriori(java.lang.String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddItemset(ItemsetUApriori itemset, int k)Add an itemset to these itemsets.intgetItemsetsCount()Get the total number of itemsets.java.util.List<java.util.List<ItemsetUApriori>>getLevels()Get the itemsets stored in this structure as a List of List where position i contains the list of itemsets of size i.voidprintItemsets()Print all itemsets to the console (system.out).
-
-
-
Constructor Detail
-
ItemsetsUApriori
public ItemsetsUApriori(java.lang.String name)
Constructor.- Parameters:
name- a name to give to these itemsets
-
-
Method Detail
-
printItemsets
public void printItemsets()
Print all itemsets to the console (system.out).
-
addItemset
public void addItemset(ItemsetUApriori itemset, int k)
Add an itemset to these itemsets.- Parameters:
itemset- the itemset to be addedk- the size of the itemset
-
getLevels
public java.util.List<java.util.List<ItemsetUApriori>> getLevels()
Get the itemsets stored in this structure as a List of List where position i contains the list of itemsets of size i.- Returns:
- the itemsets.
-
getItemsetsCount
public int getItemsetsCount()
Get the total number of itemsets.- Returns:
- the itemset count.
-
-
DMelt 3.0 © DataMelt by jWork.ORG