Module datarush.analytics
Class FPGrowthAlgorithm
- java.lang.Object
-
- com.pervasive.datarush.analytics.arm.fpgrowth.FPGrowthAlgorithm
-
public final class FPGrowthAlgorithm extends Object
An implementation of the FP-growth algorithm based onFPTree
.
-
-
Constructor Summary
Constructors Constructor Description FPGrowthAlgorithm(long minSupport, int k)
Create anFPGrowth
instance with the given minimum support value and item count value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ItemSet>
fpGrowth(com.pervasive.datarush.analytics.arm.fpgrowth.internal.FPTree fpTree)
Executes the FP-growth algorithm on the given FP-tree.
-
-
-
Constructor Detail
-
FPGrowthAlgorithm
public FPGrowthAlgorithm(long minSupport, int k)
Create anFPGrowth
instance with the given minimum support value and item count value.- Parameters:
minSupport
- the minimum number of transactions an item set must participate in to be frequentk
- the largest item-set cardinality wanted
-
-
Method Detail
-
fpGrowth
public List<ItemSet> fpGrowth(com.pervasive.datarush.analytics.arm.fpgrowth.internal.FPTree fpTree)
Executes the FP-growth algorithm on the given FP-tree. Returns the list of frequent items discovered.- Parameters:
fpTree
- the tree to feed to the FP-growth algorithm- Returns:
- the list of frequent items discovered
-
-