|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.subgroupminer.apriori.TIDItem
public class TIDItem
The TIDItem consists of an id and a BitSet, where each bit corresponds to a transaction id and is set, if this item is present in the transaction.
| Constructor Summary | |
|---|---|
TIDItem(int id)
Creates an TIDItem with this id and present in no transaction. |
|
| Method Summary | |
|---|---|
void |
addTID(int tid)
Adds a transaction id to this item, thus, the item has to be present in this transaction. |
TIDItem |
clone()
|
int |
compareTo(TIDItem theOther)
|
boolean |
equals(Object o)
|
int |
getId()
|
int |
getSupport()
The support of this item, which is the number of transaction it is present in. |
BitSet |
getTransactionIDs()
The transaction ids as a bitset, where the bit is set if the item is present in the corresponding transaction. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TIDItem(int id)
id - the id of this item| Method Detail |
|---|
public int getId()
public void addTID(int tid)
tid - the transaction id of the transaction this item is present inpublic int getSupport()
public BitSet getTransactionIDs()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic TIDItem clone()
clone in class Objectpublic int compareTo(TIDItem theOther)
compareTo in interface Comparable<TIDItem>theOther - the object to compare to
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||