public class Itemset extends AbstractOrderedItemset
Modifier and Type | Field and Description |
---|---|
int[] |
itemset
The list of items contained in this itemset, ordered by
lexical order
|
java.util.Set<java.lang.Integer> |
transactionsIds
The set of transactions/sequences id containing this itemset
|
Constructor and Description |
---|
Itemset()
Constructor
|
Itemset(int item)
Constructor
|
Itemset(int[] items)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Itemset |
cloneItemSetMinusAnItemset(Itemset itemsetToNotKeep)
Make a copy of this itemset but exclude a set of items
|
Itemset |
cloneItemSetMinusOneItem(java.lang.Integer itemsetToRemove)
Make a copy of this itemset but exclude a given item
|
java.lang.Integer |
get(int index)
Get the item at a given position.
|
int |
getAbsoluteSupport()
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.
|
void |
setTIDs(java.util.Set<java.lang.Integer> listTransactionIds)
Set the list of transaction/sequence ids containing this itemset
|
int |
size()
Get the size of this itemset.
|
allTheSameExceptLastItem, allTheSameExceptLastItemV2, contains, containsAll, getLastItem, getRelativeSupport, isEqualTo, isEqualTo, toString
getRelativeSupportAsString, print
public int[] itemset
public java.util.Set<java.lang.Integer> transactionsIds
public Itemset()
public Itemset(int item)
item
- an item that should be added to the new itemsetpublic Itemset(int[] items)
items
- an array of items that should be added to the new itemsetpublic int getAbsoluteSupport()
getAbsoluteSupport
in class AbstractOrderedItemset
public int[] getItems()
public java.lang.Integer get(int index)
get
in class AbstractOrderedItemset
index
- the positionpublic void setTIDs(java.util.Set<java.lang.Integer> listTransactionIds)
listTransactionIds
- the list of transaction/sequence idspublic int size()
size
in class AbstractOrderedItemset
public java.util.Set<java.lang.Integer> getTransactionsIds()
public Itemset cloneItemSetMinusAnItemset(Itemset itemsetToNotKeep)
itemsetToNotKeep
- the set of items to be excludedpublic Itemset cloneItemSetMinusOneItem(java.lang.Integer itemsetToRemove)
itemsetToRemove
- the given item