Package elki.itemsetmining
Class AbstractFrequentItemsetAlgorithm
- java.lang.Object
-
- elki.itemsetmining.AbstractFrequentItemsetAlgorithm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractFrequentItemsetAlgorithm.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Constructor Summary
Constructors Constructor Description AbstractFrequentItemsetAlgorithm(double minsupp)
Constructor.AbstractFrequentItemsetAlgorithm(double minsupp, int minlength, int maxlength)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrequentItemsetsResult
autorun(Database database)
Try to auto-run the algorithm on a database by calling a method calledrun
, with an optionalDatabase
first, and with data relations as specified byAlgorithm.getInputTypeRestriction()
.int
getMinimumSupport(int size)
Get the minimum support for a given data set size.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.Algorithm
getInputTypeRestriction
-
-
-
-
Constructor Detail
-
AbstractFrequentItemsetAlgorithm
public AbstractFrequentItemsetAlgorithm(double minsupp, int minlength, int maxlength)
Constructor.- Parameters:
minsupp
- Minimum supportminlength
- Minimum lengthmaxlength
- Maximum length
-
AbstractFrequentItemsetAlgorithm
public AbstractFrequentItemsetAlgorithm(double minsupp)
Constructor.- Parameters:
minsupp
- Minimum support
-
-
Method Detail
-
autorun
public FrequentItemsetsResult autorun(Database database)
Description copied from interface:Algorithm
Try to auto-run the algorithm on a database by calling a method calledrun
, with an optionalDatabase
first, and with data relations as specified byAlgorithm.getInputTypeRestriction()
.
-
getMinimumSupport
public int getMinimumSupport(int size)
Get the minimum support for a given data set size. Converts relative minimum support to absolute minimum support.- Parameters:
size
- Data set size- Returns:
- Minimum support
-
-