ECF 1.7
Tree::TreeMutHoist Class Reference

Tree genotype: mutation operator that replaces original tree with a randomly chosen subtree from the original tree. More...

#include <TreeMutHoist.h>

Inheritance diagram for Tree::TreeMutHoist:
MutationOp

Public Member Functions

bool mutate (GenotypeP gene)
 Performs mutation of a genotype object. The genotype object must be initialized!
bool initialize (StateP)
 Initialize mutation operator. Called before first mutation operation.
void registerParameters (StateP)
 Register parameters with the system. Called before MutationOp::initialize.

Additional Inherited Members

Public Attributes inherited from MutationOp
StateP state_
double probability_
 probability of usage of this mutation operator
GenotypeP myGenotype_
 pointer to the Genotype that defines this MutationOp

Detailed Description

Tree genotype: mutation operator that replaces original tree with a randomly chosen subtree from the original tree.

Definition at line 12 of file TreeMutHoist.h.

Member Function Documentation

◆ initialize()

bool Tree::TreeMutHoist::initialize ( StateP state)
virtual

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 16 of file TreeMutHoist.cpp.

◆ mutate()

bool Tree::TreeMutHoist::mutate ( GenotypeP gene)
virtual

Performs mutation of a genotype object. The genotype object must be initialized!

Implements MutationOp.

Definition at line 24 of file TreeMutHoist.cpp.

◆ registerParameters()

void Tree::TreeMutHoist::registerParameters ( StateP state)
virtual

Register parameters with the system. Called before MutationOp::initialize.

Reimplemented from MutationOp.

Definition at line 10 of file TreeMutHoist.cpp.


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