interface Node
A node that makes up a program tree.
arity |
abstract val arity: Int
The number of arguments that this node expects. |
evaluate |
abstract fun evaluate(args: List<Double>): Double
Evaluates this node on a set of arguments. |
Function |
abstract class Function : Node
A node that can perform some function on a set of arguments. |
Terminal |
abstract class Terminal : Node
A node that does not have any child nodes. |