Package elki.itemsetmining
Class OneItemset
- java.lang.Object
-
- elki.itemsetmining.Itemset
-
- elki.itemsetmining.OneItemset
-
-
Constructor Summary
Constructors Constructor Description OneItemset(int item)Constructor of 1-itemset.OneItemset(int item, int support)Constructor with initial support.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringBuilderappendItemsTo(java.lang.StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)Only append the items to a string buffer.intcompareTo(Itemset o)booleancontainedIn(SparseNumberVector bv)Test whether the itemset is contained in a bit vector.booleanequals(java.lang.Object obj)inthashCode()Deprecated.Itemsets MUST NOT BE USED IN HASH MAPS.intiter()Get an iterator over items, usually the position within an array.intiterAdvance(int iter)Advance the iterator to the next position.intiterDim(int iter)Item at the iterator position.booleaniterValid(int iter)Check if the iterator position is valid.intlength()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:ItemsetItemset length.
-
containedIn
public boolean containedIn(SparseNumberVector bv)
Description copied from class:ItemsetTest whether the itemset is contained in a bit vector.- Overrides:
containedInin classItemset- Parameters:
bv- Bit vector- Returns:
truewhen the itemset is contained in this vector.
-
iter
public int iter()
Description copied from class:ItemsetGet 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:ItemsetCheck if the iterator position is valid.
-
iterAdvance
public int iterAdvance(int iter)
Description copied from class:ItemsetAdvance the iterator to the next position.- Specified by:
iterAdvancein classItemset- Parameters:
iter- Iterator- Returns:
- New iterator position
-
iterDim
public int iterDim(int iter)
Description copied from class:ItemsetItem 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:ItemsetOnly append the items to a string buffer.- Overrides:
appendItemsToin classItemset- Parameters:
buf- Buffermeta- Relation metadata (for labels)- Returns:
- String buffer for chaining.
-
-