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 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
appendItemsTo, appendTo, compareLexicographical, compareTo, containedIn, equals, getSupport, hashCode, increaseSupport, toBitset, toString
-
-
-
-
Method Detail
-
length
public int length()
Description copied from class:Itemset
Itemset length.
-
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
-
-