public abstract class AbstractItemset
extends java.lang.Object
AbstractOrderedItemset
,
AbstractMutableOrderedItemset
Constructor and Description |
---|
AbstractItemset() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
contains(java.lang.Integer item)
Check if this itemset contains a given item.
|
abstract int |
getAbsoluteSupport()
Get the support of this itemset
|
abstract double |
getRelativeSupport(int nbObject)
Get the relative support of this itemset (a percentage) as a double
|
java.lang.String |
getRelativeSupportAsString(int nbObject)
Get the relative support of this itemset as a string
|
void |
print()
print this itemset to System.out.
|
abstract int |
size()
Get the size of this itemset
|
abstract java.lang.String |
toString()
Get this itemset as a string
|
public abstract int size()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public void print()
public abstract int getAbsoluteSupport()
public abstract double getRelativeSupport(int nbObject)
nbObject
- the number of transactions in the database where this itemset was foundpublic java.lang.String getRelativeSupportAsString(int nbObject)
nbObject
- the number of transactions in the database where this itemset was foundpublic abstract boolean contains(java.lang.Integer item)
item
- the item