class

Learning::Generalization::Rule

Inherits Reference < Object

Represents a generalized rule

Constructors

new(antecedent : Array(String), consequent : String, support : Int32 = 0, confidence : Float64 = 0.0)

Instance methods

antecedent
confidence
consequent
support
to_atomspace(atomspace : AtomSpace::AtomSpace) : AtomSpace::Atom

Convert to AtomSpace representation

to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>