kgp.tree / TreeGenerator

TreeGenerator

class TreeGenerator

Generates Trees using a given function set and options.

Constructors

<init> TreeGenerator(functions: List<Function>, options: TreeGeneratorOptions)

Generates Trees using a given function set and options.

Properties

functions val functions: List<Function>

A function set made available to the trees generated.

options val options: TreeGeneratorOptions

Controls the operation of the tree generator.

Functions

generateTree fun generateTree(): Tree

Generates a random tree using the functions and options of this generator.