ca.pfv.spmf.algorithms.frequentpatterns.uapriori
Class ItemsetUApriori
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.uapriori.ItemsetUApriori
-
public class ItemsetUApriori extends java.lang.ObjectThis class represents an itemset (a set of items) as used by the UApriori algorithm uncertain itemset mining.- See Also:
AlgoUApriori,ItemUApriori
-
-
Constructor Summary
Constructors Constructor and Description ItemsetUApriori()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontains(ItemUApriori item)Check if this itemset contains a given item.ItemUAprioriget(int index)Get the item at at a given position in that itemsetdoublegetExpectedSupport()Get the expected support of this itemset.java.util.List<ItemUApriori>getItems()Get items from that itemset.java.lang.StringgetSupportAsString()Get the expected support as a five decimals stringbooleanisEqualTo(ItemsetUApriori itemset2)Check if this itemset is equal to another one.voidprint()print this itemset to System.out.voidprintWithoutSupport()Print the items in this itemset to System.out.intsize()Get the number of items in this itemsetjava.lang.StringtoString()Get a string representation of the items in this itemset.
-
-
-
Method Detail
-
getExpectedSupport
public double getExpectedSupport()
Get the expected support of this itemset.- Returns:
- expected support value.
-
getSupportAsString
public java.lang.String getSupportAsString()
Get the expected support as a five decimals string- Returns:
- a string
-
getItems
public java.util.List<ItemUApriori> getItems()
Get items from that itemset.- Returns:
- a list of integers (items).
-
get
public ItemUApriori get(int index)
Get the item at at a given position in that itemset- Parameters:
index- the position- Returns:
- the item (Integer)
-
print
public void print()
print this itemset to System.out.
-
printWithoutSupport
public void printWithoutSupport()
Print the items in this itemset to System.out.
-
toString
public java.lang.String toString()
Get a string representation of the items in this itemset.- Overrides:
toStringin classjava.lang.Object
-
contains
public boolean contains(ItemUApriori item)
Check if this itemset contains a given item.- Parameters:
item- the item- Returns:
- true, if yes, otherwise false.
-
isEqualTo
public boolean isEqualTo(ItemsetUApriori itemset2)
Check if this itemset is equal to another one.- Parameters:
itemset2- the other itemset- Returns:
- true if yes, otherwise false
-
size
public int size()
Get the number of items in this itemset- Returns:
- the item count (int)
-
-
DMelt 3.0 © DataMelt by jWork.ORG