protected static class AssociationRuleGeneration.PartialItemset extends Itemset
SparseItemset
.
Do not use this for storage.Modifier and Type | Field and Description |
---|---|
int |
begin
Fake length and offset.
|
int[] |
indices
Scratch storage.
|
int |
len
Fake length and offset.
|
Constructor and Description |
---|
PartialItemset(int[] indices)
Constructor.
|
Modifier and Type | Method and 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.
|
appendItemsTo, appendTo, compareLexicographical, compareTo, containedIn, equals, getSupport, hashCode, increaseSupport, toBitset, toString
public int len
public int begin
public int[] indices
public PartialItemset(int[] indices)
indices
- Indicespublic int length()
Itemset
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
- IteratorCopyright © 2019 ELKI Development Team. License information.