module FpGrowth

Constants

VERSION

Public Class Methods

fp_growth(transactions, threshold=1) click to toggle source
# File lib/fpgrowth.rb, line 10
def self.fp_growth(transactions, threshold=1)
  fp_tree = FpTree.build(transactions, threshold)
  Miner.fp_growth(fp_tree)
end
mine(transactions, threshold=1) click to toggle source
# File lib/fpgrowth.rb, line 6
def self.mine(transactions, threshold=1)
  td_fp_growth(transactions, threshold)
end
td_fp_growth(transactions, threshold=1) click to toggle source
# File lib/fpgrowth.rb, line 15
def self.td_fp_growth(transactions, threshold=1)
  fp_tree = FpTree.build(transactions, threshold)
  Miner.td_fp_growth(fp_tree)
end