Modifier and Type | Field and Description |
---|---|
(package private) long[] |
items
Items, as a bitmask.
|
(package private) int |
length
Itemset length.
|
Constructor and Description |
---|
DenseItemset(long[] items,
int length)
Constructor.
|
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 DenseItemset(long[] items, int length)
items
- Itemslength
- Length (Cardinality of itemset)public 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.