public class Itemset
extends java.lang.Object
AbstractOrderedItemsetsAdapter
Constructor and Description |
---|
Itemset()
Constructor to create an empty itemset.
|
Itemset(java.lang.Integer item)
Constructor to create an itemset with an item
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.Integer value)
Add an item to this itemset
|
Itemset |
cloneItemSet()
This method makes a copy of an itemset
|
Itemset |
cloneItemSetMinusItems(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> mapSequenceID,
double relativeMinsup)
This methods makes a copy of this itemset but without
items having a support lower than minsup
|
boolean |
containsAll(Itemset itemset2)
This methods checks if another itemset is contained in this one.
|
java.lang.Integer |
get(int index)
Get an item at a given position in this itemset
|
java.util.List<java.lang.Integer> |
getItems()
Get the list of items
|
int |
size()
Get the size of this itemset (the number of items)
|
java.lang.String |
toString()
Get this itemset as a string
|
public Itemset(java.lang.Integer item)
item
- the itempublic Itemset()
public void addItem(java.lang.Integer value)
value
- the itempublic java.util.List<java.lang.Integer> getItems()
public java.lang.Integer get(int index)
index
- the positionpublic java.lang.String toString()
toString
in class java.lang.Object
public int size()
public Itemset cloneItemSetMinusItems(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> mapSequenceID, double relativeMinsup)
mapSequenceID
- a map indicating the support of each item. key: item value: supportrelativeMinsup
- the support expressed as a percentagepublic Itemset cloneItemSet()
public boolean containsAll(Itemset itemset2)
itemset2
- the other itemset