Class: Apriori::AssociationRule
- Inherits:
-
Object
- Object
- Apriori::AssociationRule
- Defined in:
- lib/apriori/association_rule.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
string[].
-
#lhs ⇒ Object
readonly
string[].
-
#rhs ⇒ Object
readonly
string[].
Instance Method Summary collapse
-
#initialize(lhs, rhs, confidence) ⇒ AssociationRule
constructor
A new instance of AssociationRule.
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
#confidence ⇒ Object (readonly)
string[]
4 5 6 |
# File 'lib/apriori/association_rule.rb', line 4 def confidence @confidence end |
#lhs ⇒ Object (readonly)
string[]
4 5 6 |
# File 'lib/apriori/association_rule.rb', line 4 def lhs @lhs end |
#rhs ⇒ Object (readonly)
string[]
4 5 6 |
# File 'lib/apriori/association_rule.rb', line 4 def rhs @rhs end |