protected static class FPGrowth.FrequentBinaryItemSet extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
protected ArrayList<FPGrowth.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(ArrayList<FPGrowth.BinaryItem> items,
int support)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(FPGrowth.BinaryItem i)
Add an item to this item set.
|
Object |
clone()
Make a copy of this item set.
|
FPGrowth.BinaryItem |
getItem(int index)
Get a particular item from this item set.
|
Collection<FPGrowth.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.
|
String |
toString()
Get a textual description of this item set.
|
protected ArrayList<FPGrowth.BinaryItem> m_items
protected int m_support
public FrequentBinaryItemSet(ArrayList<FPGrowth.BinaryItem> items, int support)
items
- the items that make up the frequent item set.support
- the support of this item set.public void addItem(FPGrowth.BinaryItem i)
i
- the item to add.public void setSupport(int support)
support
- the support for this item set.public int getSupport()
public Collection<FPGrowth.BinaryItem> getItems()
public FPGrowth.BinaryItem getItem(int index)
index
- the index of the item to get.public int numberOfItems()
public String toString()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.