public class OneItemset extends Itemset
Modifier and Type | Field and Description |
---|---|
(package private) int |
item
Trivial item.
|
Constructor and Description |
---|
OneItemset(int item)
Constructor of 1-itemset.
|
OneItemset(int item,
int support)
Constructor with initial support.
|
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.
|
getSupport, increaseSupport, toString
public OneItemset(int item)
item
- Itempublic OneItemset(int item, int support)
item
- Itemsupport
- Supportpublic 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
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.