module FpGrowth::FpTree::Builder
Public Class Methods
build(transactions, threshold=1)
click to toggle source
# File lib/fpgrowth/fp_tree/builder.rb, line 10 def self.build(transactions, threshold=1) first_pass = FirstPass.new(threshold) supports = first_pass.execute(transactions) second_pass = SecondPass.new(supports, threshold) tree = second_pass.execute(transactions) return tree end