kgp.tree / Tree / pointMutation

pointMutation

fun pointMutation(replacementRate: Double): Unit

Performs the point mutation operation on this tree.

Point mutation works by choosing a collection of random nodes in the tree to be replaced and then replacing each with another random node.

Note that this operation directly modifies the tree that initiates the operation.

Parameters

replacementRate - The frequency with which replacements should occur.