kgp.tree / Nodes

Nodes

object Nodes

A collection of function nodes that are available by default.

Types

Addition class Addition : Function

Adds two arguments together (x + y).

Cosine class Cosine : Function

Performs the cosine function on a single argument (cos(x))

Division class Division : Function

Divides one argument by the other in a protected manner (x / if (x == 0) 1.0 else y).

Multiplication class Multiplication : Function

Multiplies two arguments together (x * y).

Sine class Sine : Function

Performs the sine function on a single argument (sin(x))

Subtraction class Subtraction : Function

Subtracts one argument from the other (x - y).