Tree genotype: node replacement mutation operator. Tries to replace the selected primitive with a different one with the same number of arguments. More...
#include <TreeMutNodeReplace.h>
Public Member Functions | |
| bool | mutate (GenotypeP gene) |
| bool | initialize (StateP) |
| void | registerParameters (StateP) |
Tree genotype: node replacement mutation operator. Tries to replace the selected primitive with a different one with the same number of arguments.
Definition at line 12 of file TreeMutNodeReplace.h.
| bool Tree::TreeMutNodeReplace::initialize | ( | StateP | ) | [virtual] |
Initialize mutation operator. Called before first mutation operation.
Reimplemented from MutationOp.
Definition at line 16 of file TreeMutNodeReplace.cpp.
| bool Tree::TreeMutNodeReplace::mutate | ( | GenotypeP | ) | [virtual] |
Performs mutation of a genotype object. The genotype object must be initialized!
Implements MutationOp.
Definition at line 24 of file TreeMutNodeReplace.cpp.
| void Tree::TreeMutNodeReplace::registerParameters | ( | StateP | ) | [virtual] |
Register parameters with the system. Called before MutationOp::initialize.
Reimplemented from MutationOp.
Definition at line 10 of file TreeMutNodeReplace.cpp.
1.7.1