Public Member Functions

Tree::TreeMutNodeReplace Class Reference

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>

Inheritance diagram for Tree::TreeMutNodeReplace:
MutationOp

List of all members.

Public Member Functions

bool mutate (GenotypeP gene)
bool initialize (StateP)
void registerParameters (StateP)

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: