Public Member Functions

Tree::TreeMutShrink Class Reference

Tree genotype: mutation operator that shrinks randomly chosen subtree. More...

#include <TreeMutShrink.h>

Inheritance diagram for Tree::TreeMutShrink:
MutationOp

List of all members.

Public Member Functions

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

Detailed Description

Tree genotype: mutation operator that shrinks randomly chosen subtree.

Definition at line 11 of file TreeMutShrink.h.


Member Function Documentation

bool Tree::TreeMutShrink::initialize ( StateP   )  [virtual]

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 16 of file TreeMutShrink.cpp.

bool Tree::TreeMutShrink::mutate ( GenotypeP   )  [virtual]

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

Implements MutationOp.

Definition at line 24 of file TreeMutShrink.cpp.

void Tree::TreeMutShrink::registerParameters ( StateP   )  [virtual]

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

Reimplemented from MutationOp.

Definition at line 10 of file TreeMutShrink.cpp.


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