|
||||||||||
| 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.TIDItemSet
public final class TIDItemSet
The TIDItemSet contains of some TIDItems and a BitSet with their common transaction ids. The BitSet is of the length of the total number of transactions with the bit set, if the items in the set are present in the transaction where the id equals the position in the bitset. When an item is added, the transaction ids are intersected.
| Method Summary | |
|---|---|
void |
addItem(TIDItem i)
Adds an item to the set and thereby intersecting the transaction ids. |
protected TIDItemSet |
clone()
|
static TIDItemSet |
createEmptyTIDItemSet(String id,
int length)
Creates an empty TIDItemSet with no items but, since it is an empty set, present in all transactions. |
boolean |
equals(Object o)
|
BitSet |
getCommonTIDs()
Return the transaction ids in which the items in this set appear together as a bitset where the bit is set if the items are present in this transaction. |
String |
getId()
|
List<TIDItem> |
getItems()
|
double |
getSupport()
Returns the support of this set, which is equal to the number of transactions the items in this set appear together in. |
List<Integer> |
getTIDs()
Returns the list of tids as a integer list. |
int |
hashCode()
|
boolean |
isSuperSetOf(TIDItemSet s)
|
FrequentItemSet |
toFrequentItemSet()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static TIDItemSet createEmptyTIDItemSet(String id,
int length)
id - the current item set IDlength - the number of transactions
public String getId()
public void addItem(TIDItem i)
i - the item to addpublic List<TIDItem> getItems()
public double getSupport()
public BitSet getCommonTIDs()
public List<Integer> getTIDs()
public boolean isSuperSetOf(TIDItemSet s)
s - the set to test
true, if this set contains all items of the other
set, false otherwisepublic FrequentItemSet toFrequentItemSet()
protected TIDItemSet clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||