Class: Apriori::AssociationRule

Inherits:
Object
  • Object
show all
Defined in:
lib/apriori/association_rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lhs, rhs, confidence) ⇒ AssociationRule

Returns a new instance of AssociationRule.



8
9
10
11
12
# File 'lib/apriori/association_rule.rb', line 8

def initialize(lhs, rhs, confidence)
  @lhs = lhs
  @rhs = rhs
  @confidence = confidence
end

Instance Attribute Details

#confidenceObject (readonly)

string[]



4
5
6
# File 'lib/apriori/association_rule.rb', line 4

def confidence
  @confidence
end

#lhsObject (readonly)

string[]



4
5
6
# File 'lib/apriori/association_rule.rb', line 4

def lhs
  @lhs
end

#rhsObject (readonly)

string[]



4
5
6
# File 'lib/apriori/association_rule.rb', line 4

def rhs
  @rhs
end