Class Itemset
- java.lang.Object
-
- org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.AbstractItemset
-
- org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.AbstractOrderedItemset
-
- org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.Itemset
-
public class Itemset extends AbstractOrderedItemset
This class represents an itemset (a set of items) where the itemset is an array of integers sorted by lexical order where no item can appear twice, and the ids of transactions/sequences containing this itemset is represented as a set of integers.- Author:
- Philippe Fournier-Viger
-
-
Field Summary
Fields Modifier and Type Field Description int[]itemsetThe list of items contained in this itemset, ordered by lexical orderjava.util.Set<java.lang.Integer>transactionsIdsThe set of transactions/sequences id containing this itemset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemsetcloneItemSetMinusAnItemset(Itemset itemsetToNotKeep)Make a copy of this itemset but exclude a set of itemsItemsetcloneItemSetMinusOneItem(java.lang.Integer itemsetToRemove)Make a copy of this itemset but exclude a given itemjava.lang.Integerget(int index)Get the item at a given position.intgetAbsoluteSupport()Get the support of this itemset (as an integer)int[]getItems()Get the items in this itemset as a list.java.util.Set<java.lang.Integer>getTransactionsIds()Get the list of sequence/transaction ids containing this itemset.voidsetTIDs(java.util.Set<java.lang.Integer> listTransactionIds)Set the list of transaction/sequence ids containing this itemsetintsize()Get the size of this itemset.-
Methods inherited from class org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.AbstractOrderedItemset
allTheSameExceptLastItem, allTheSameExceptLastItemV2, contains, containsAll, getLastItem, getRelativeSupport, isEqualTo, isEqualTo, toString
-
Methods inherited from class org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.AbstractItemset
getRelativeSupportAsString, print
-
-
-
-
Method Detail
-
getAbsoluteSupport
public int getAbsoluteSupport()
Get the support of this itemset (as an integer)- Specified by:
getAbsoluteSupportin classAbstractOrderedItemset- Returns:
- the support of this itemset
-
getItems
public int[] getItems()
Get the items in this itemset as a list.- Returns:
- the items.
-
get
public java.lang.Integer get(int index)
Get the item at a given position.- Specified by:
getin classAbstractOrderedItemset- Parameters:
index- the position- Returns:
- the item
-
setTIDs
public void setTIDs(java.util.Set<java.lang.Integer> listTransactionIds)
Set the list of transaction/sequence ids containing this itemset- Parameters:
listTransactionIds- the list of transaction/sequence ids
-
size
public int size()
Get the size of this itemset.- Specified by:
sizein classAbstractOrderedItemset- Returns:
- the size of this itemset
-
getTransactionsIds
public java.util.Set<java.lang.Integer> getTransactionsIds()
Get the list of sequence/transaction ids containing this itemset.- Returns:
- the list of transaction ids.
-
cloneItemSetMinusAnItemset
public Itemset cloneItemSetMinusAnItemset(Itemset itemsetToNotKeep)
Make a copy of this itemset but exclude a set of items- Parameters:
itemsetToNotKeep- the set of items to be excluded- Returns:
- the copy
-
cloneItemSetMinusOneItem
public Itemset cloneItemSetMinusOneItem(java.lang.Integer itemsetToRemove)
Make a copy of this itemset but exclude a given item- Parameters:
itemsetToRemove- the given item- Returns:
- the copy
-
-