Class AbstractItemset
- java.lang.Object
-
- org.processmining.logfiltering.algorithms.SPMF.PatternMining.AbstractItemset
-
- Direct Known Subclasses:
AbstractOrderedItemset
public abstract class AbstractItemset extends java.lang.ObjectThis is an abstract class for an itemset (a set of items.- Author:
- Philippe Fournier-Viger
- See Also:
AbstractOrderedItemset,AbstractMutableOrderedItemset
-
-
Constructor Summary
Constructors Constructor Description AbstractItemset()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancontains(java.lang.Integer item)Check if this itemset contains a given item.abstract intgetAbsoluteSupport()Get the support of this itemsetabstract doublegetRelativeSupport(int nbObject)Get the relative support of this itemset (a percentage) as a doublejava.lang.StringgetRelativeSupportAsString(int nbObject)Get the relative support of this itemset as a stringvoidprint()print this itemset to System.out.abstract intsize()Get the size of this itemsetabstract java.lang.StringtoString()Get this itemset as a string
-
-
-
Method Detail
-
size
public abstract int size()
Get the size of this itemset- Returns:
- the size of this itemset
-
toString
public abstract java.lang.String toString()
Get this itemset as a string- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this itemset
-
print
public void print()
print this itemset to System.out.
-
getAbsoluteSupport
public abstract int getAbsoluteSupport()
Get the support of this itemset- Returns:
- the support of this itemset
-
getRelativeSupport
public abstract double getRelativeSupport(int nbObject)
Get the relative support of this itemset (a percentage) as a double- Parameters:
nbObject- the number of transactions in the database where this itemset was found- Returns:
- the relative support of the itemset as a double
-
getRelativeSupportAsString
public java.lang.String getRelativeSupportAsString(int nbObject)
Get the relative support of this itemset as a string- Parameters:
nbObject- the number of transactions in the database where this itemset was found- Returns:
- the relative support of the itemset as a string
-
contains
public abstract boolean contains(java.lang.Integer item)
Check if this itemset contains a given item.- Parameters:
item- the item- Returns:
- true if the item is contained in this itemset
-
-