Class AssociationRuleGeneration.PartialItemset
- java.lang.Object
-
- elki.itemsetmining.Itemset
-
- elki.itemsetmining.associationrules.AssociationRuleGeneration.PartialItemset
-
- All Implemented Interfaces:
java.lang.Comparable<Itemset>
- Enclosing class:
- AssociationRuleGeneration
protected static class AssociationRuleGeneration.PartialItemset extends Itemset
Mutable scatch itemset for finding itemsets, based onSparseItemset. Do not use this for storage.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description PartialItemset(int[] indices)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
appendItemsTo, appendTo, compareLexicographical, compareTo, containedIn, equals, getSupport, hashCode, increaseSupport, toBitset, toString
-
-
-
-
Method Detail
-
length
public int length()
Description copied from class:ItemsetItemset length.
-
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
-
-