protected static class FPGrowth.FrequentBinaryItemSet
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<BinaryItem> |
m_items
The list of items in the item set
|
protected int |
m_support
the support of this item set
|
| Constructor and Description |
|---|
FrequentBinaryItemSet(java.util.ArrayList<BinaryItem> items,
int support)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(BinaryItem i)
Add an item to this item set.
|
java.lang.Object |
clone()
Make a copy of this item set.
|
BinaryItem |
getItem(int index)
Get a particular item from this item set.
|
java.util.Collection<BinaryItem> |
getItems()
Get the items in this item set.
|
int |
getSupport()
Get the support of this item set.
|
int |
numberOfItems()
Get the number of items in this item set.
|
void |
setSupport(int support)
Set the support for this item set.
|
java.lang.String |
toString()
Get a textual description of this item set.
|
protected java.util.ArrayList<BinaryItem> m_items
protected int m_support
public FrequentBinaryItemSet(java.util.ArrayList<BinaryItem> items, int support)
items - the items that make up the frequent item set.support - the support of this item set.public void addItem(BinaryItem i)
i - the item to add.public void setSupport(int support)
support - the support for this item set.public int getSupport()
public java.util.Collection<BinaryItem> getItems()
public BinaryItem getItem(int index)
index - the index of the item to get.public int numberOfItems()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object