Package elki.itemsetmining
Class SmallDenseItemset
- java.lang.Object
-
- elki.itemsetmining.Itemset
-
- elki.itemsetmining.SmallDenseItemset
-
-
Constructor Summary
Constructors Constructor Description SmallDenseItemset(long items, int length)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class elki.itemsetmining.Itemset
appendTo, compareLexicographical, getSupport, increaseSupport, toBitset, toString
-
-
-
-
Method Detail
-
length
public int length()
Description copied from class:Itemset
Itemset length.
-
containedIn
public boolean containedIn(SparseNumberVector bv)
Description copied from class:Itemset
Test whether the itemset is contained in a bit vector.- Overrides:
containedIn
in classItemset
- Parameters:
bv
- Bit vector- Returns:
true
when the itemset is contained in this vector.
-
iter
public int iter()
Description copied from class:Itemset
Get an iterator over items, usually the position within an array. Intended usage:for (int iter = v.iter(); v.iterValid(iter); iter = v.iterAdvance(iter)) { final int item = v.iterItem(iter); // Do something. }
-
iterValid
public boolean iterValid(int iter)
Description copied from class:Itemset
Check if the iterator position is valid.
-
iterAdvance
public int iterAdvance(int iter)
Description copied from class:Itemset
Advance the iterator to the next position.- Specified by:
iterAdvance
in classItemset
- Parameters:
iter
- Iterator- Returns:
- New iterator position
-
iterDim
public int iterDim(int iter)
Description copied from class:Itemset
Item at the iterator position.
-
hashCode
@Deprecated public int hashCode()
Deprecated.Itemsets MUST NOT BE USED IN HASH MAPS.
-
compareTo
public int compareTo(Itemset o)
-
appendItemsTo
public java.lang.StringBuilder appendItemsTo(java.lang.StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)
Description copied from class:Itemset
Only append the items to a string buffer.- Overrides:
appendItemsTo
in classItemset
- Parameters:
buf
- Buffermeta
- Relation metadata (for labels)- Returns:
- String buffer for chaining.
-
-