public class Itemset
extends java.lang.Object
It represents an itemset throughout the execution of the algorithm
Constructor and Description |
---|
Itemset()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(Item item)
It allows to add an item into an itemset
|
void |
addItemset(Itemset newItemset)
It allows to add an item into an itemset
|
void |
addNew(Item item)
It allows to add an item into an itemset
|
java.lang.String |
calculateSupport(myDataset dataset,
DataBase database,
double umbral)
It computes the support of an itemset
|
Itemset |
clone()
It allows to clone correctly an itemset
|
Item |
get(int pos)
It returns the item stored at the index "pos" within an itemset
|
double |
getSupport()
It returns the support of an itemset
|
Item |
remove(int pos)
It allows to remove the item stored at the index "pos" within an itemset
|
int |
size()
It returns the number of items contained into an itemset
|
public Itemset clone()
It allows to clone correctly an itemset
clone
in class java.lang.Object
public void add(Item item)
It allows to add an item into an itemset
item
- An item to be added into the itemsetpublic void addNew(Item item)
It allows to add an item into an itemset
item
- An item to be added into the itemsetpublic void addItemset(Itemset newItemset)
It allows to add an item into an itemset
newItemset
- An item to be added into the itemsetpublic Item get(int pos)
It returns the item stored at the index "pos" within an itemset
pos
- The index of the item to be returnedpublic Item remove(int pos)
It allows to remove the item stored at the index "pos" within an itemset
pos
- The index of the item to be removedpublic int size()
It returns the number of items contained into an itemset
public double getSupport()
It returns the support of an itemset
public java.lang.String calculateSupport(myDataset dataset, DataBase database, double umbral)
It computes the support of an itemset
dataset
- dataset given used to compute the support.database
- The instance of the fuzzy dataset for dealing with its fuzzy transactionsumbral
- degree threshold.