Modifier and Type | Field and Description |
---|---|
(package private) int |
item
Trivial item.
|
Constructor and Description |
---|
OneItemset(int item)
Constructor of 1-itemset.
|
OneItemset(int item,
int support)
Constructor with initial support.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
appendItemsTo(java.lang.StringBuilder buf,
VectorFieldTypeInformation<BitVector> meta)
Only append the items to a string buffer.
|
int |
compareTo(Itemset o) |
boolean |
containedIn(SparseNumberVector bv)
Test whether the itemset is contained in a bit vector.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode()
Deprecated.
Itemsets MUST NOT BE USED IN HASH MAPS.
|
int |
iter()
Get an iterator over items, usually the position within an array.
|
int |
iterAdvance(int iter)
Advance the iterator to the next position.
|
int |
iterDim(int iter)
Item at the iterator position.
|
boolean |
iterValid(int iter)
Check if the iterator position is valid.
|
int |
length()
Itemset length.
|
appendTo, compareLexicographical, getSupport, increaseSupport, toBitset, toString
public OneItemset(int item)
item
- Itempublic OneItemset(int item, int support)
item
- Itemsupport
- Supportpublic int length()
Itemset
public boolean containedIn(SparseNumberVector bv)
Itemset
containedIn
in class Itemset
bv
- Bit vectortrue
when the itemset is contained in this vector.public int iter()
Itemset
for (int iter = v.iter(); v.iterValid(iter); iter = v.iterAdvance(iter)) {
final int item = v.iterItem(iter);
// Do something.
}
public boolean iterValid(int iter)
Itemset
public int iterAdvance(int iter)
Itemset
iterAdvance
in class Itemset
iter
- Iteratorpublic int iterDim(int iter)
Itemset
@Deprecated public int hashCode()
public int compareTo(Itemset o)
public java.lang.StringBuilder appendItemsTo(java.lang.StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)
Itemset
appendItemsTo
in class Itemset
buf
- Buffermeta
- Relation metadata (for labels)Copyright © 2019 ELKI Development Team. License information.