Moses::Program
Inherits Reference < Object
Program representation using a structured approach Supports both string-based and tree-based representations
Constructors
new(expression : String)
SourceInstance methods
constants
Sourceconstants=(constants : Array(Float64))
Sourceexecute(inputs : Array(Float64), problem_type : ProblemType) : Float64 | Bool
Execute program with given inputs
expression
Sourceexpression=(expression : String)
Sourceparsed_tree
Sourceparsed_tree=(parsed_tree : ProgramNode | Nil)
Sourceto_s(io)
Sourcevariables
Sourcevariables=(variables : Array(String))
Source