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
|
java.util.ArrayList<java.lang.Integer> |
calculateSupport(FuzzyDataset fuzzyDataset)
It computes the support of an itemset
|
Itemset |
clone()
It allows to clone correctly an itemset
|
boolean |
equals(java.lang.Object obj)
It indicates whether some other itemset is "equal to" this one
|
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
|
java.lang.String |
toString()
It returns a raw string representation of 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 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.util.ArrayList<java.lang.Integer> calculateSupport(FuzzyDataset fuzzyDataset)
It computes the support of an itemset
fuzzyDataset
- The instance of the fuzzy dataset for dealing with its fuzzy transactionspublic boolean equals(java.lang.Object obj)
It indicates whether some other itemset is "equal to" this one
equals
in class java.lang.Object
obj
- The reference object with which to comparepublic java.lang.String toString()
It returns a raw string representation of an itemset
toString
in class java.lang.Object