kgp.tree / Node

Node

interface Node

A node that makes up a program tree.

Properties

arity abstract val arity: Int

The number of arguments that this node expects.

Functions

evaluate abstract fun evaluate(args: List<Double>): Double

Evaluates this node on a set of arguments.

Inheritors

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.