public class SparseItemset extends Itemset
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
indices
Items, as indexes.
|
Constructor and Description |
---|
SparseItemset(int[] indices)
Constructor.
|
SparseItemset(int[] indices,
int support)
Constructor.
|
SparseItemset(OneItemset ii,
OneItemset ij)
Constructor from existing itemsets.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendTo(StringBuilder buf,
VectorFieldTypeInformation<BitVector> meta)
Append to a string buffer.
|
int |
compareTo(Itemset o) |
boolean |
containedIn(BitVector bv)
Test whether the itemset is contained in a bit vector.
|
boolean |
equals(Object obj) |
long[] |
getItems()
Get the items.
|
int |
hashCode() |
int |
length()
Itemset length.
|
boolean |
prefixTest(SparseItemset other)
Perform the prefix test for sparse itemset.
|
getSupport, increaseSupport, toString
public 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()
Itemset
public boolean containedIn(BitVector bv)
Itemset
containedIn
in class Itemset
bv
- Bit vectortrue
when the itemset is contained in this vector.public long[] getItems()
Itemset
public int compareTo(Itemset o)
public StringBuilder appendTo(StringBuilder buf, VectorFieldTypeInformation<BitVector> meta)
Itemset
public boolean prefixTest(SparseItemset other)
other
- Other itemsettrue
iff the first n-1 items agree.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.