Module datarush.analytics
Class FPGrowthAlgorithm
java.lang.Object
com.pervasive.datarush.analytics.arm.fpgrowth.FPGrowthAlgorithm
An implementation of the FP-growth algorithm based on
FPTree.-
Constructor Summary
ConstructorsConstructorDescriptionFPGrowthAlgorithm(long minSupport, int k) Create anFPGrowthinstance with the given minimum support value and item count value. -
Method Summary
-
Constructor Details
-
FPGrowthAlgorithm
public FPGrowthAlgorithm(long minSupport, int k) Create anFPGrowthinstance 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 Details
-
fpGrowth
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
-