| Modifier and Type | Field and Description | 
|---|---|
| (package private) int[] | indicesItems, as indexes. | 
| Constructor and Description | 
|---|
| SparseItemset(int[] indices)Constructor. | 
| SparseItemset(int[] indices,
             int support)Constructor with initial support. | 
| SparseItemset(OneItemset ii,
             OneItemset ij)Constructor from existing itemsets. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Itemset o) | 
| 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. | 
| boolean | prefixTest(SparseItemset other)Perform the prefix test for sparse itemset. | 
appendItemsTo, appendTo, compareLexicographical, containedIn, equals, getSupport, hashCode, increaseSupport, toBitset, toStringpublic SparseItemset(int[] indices)
indices - Itemspublic SparseItemset(int[] indices,
                     int support)
indices - Itemssupport - Supportpublic SparseItemset(OneItemset ii, OneItemset ij)
ii - First 1-itemsetij - Second 1-itemsetpublic int length()
Itemsetpublic 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)
Itemsetpublic int iterAdvance(int iter)
ItemsetiterAdvance in class Itemsetiter - Iteratorpublic int iterDim(int iter)
Itemsetpublic int compareTo(Itemset o)
public boolean prefixTest(SparseItemset other)
other - Other itemsettrue iff the first n-1 items agree.Copyright © 2019 ELKI Development Team. License information.