ECF 1.7

MutationOp base class. More...

#include <Mutation.h>

Inheritance diagram for MutationOp:
Binary::BinaryMutMix Binary::BinaryMutSimple BitString::BitStringMutMix BitString::BitStringMutSimple Cartesian::CartesianMutNonSilent Cartesian::CartesianMutNonSilent Cartesian::CartesianMutOnePoint Cartesian::CartesianMutOnePoint Cartesian::CartesianMutOnePointActive Cartesian::CartesianMutOnePointActive Cartesian::CartesianMutSilent Cartesian::CartesianMutSilent FloatingPoint::FloatingPointMutSimple GEP::GEPChromosomeMutGauss GEP::GEPChromosomeMutOp IntGenotype::IntGenotypeMutOp Permutation::PermutationMutIns Permutation::PermutationMutInv Permutation::PermutationMutToggle Tree::TreeMutGauss Tree::TreeMutHoist Tree::TreeMutNodeComplement Tree::TreeMutNodeReplace Tree::TreeMutPermutation Tree::TreeMutShrink Tree::TreeMutSubtree

Public Member Functions

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

Public Attributes

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

Detailed Description

MutationOp base class.

Each MutationOp class mutates a genotype object. Each Genotype class must define its own set of MutationOp classes.

Definition at line 16 of file Mutation.h.

Constructor & Destructor Documentation

◆ MutationOp()

MutationOp::MutationOp ( )
inline

Definition at line 19 of file Mutation.h.

◆ ~MutationOp()

virtual MutationOp::~MutationOp ( )
inlinevirtual

Definition at line 36 of file Mutation.h.

Member Function Documentation

◆ initialize()

◆ mutate()

◆ registerParameters()

Member Data Documentation

◆ myGenotype_

GenotypeP MutationOp::myGenotype_

pointer to the Genotype that defines this MutationOp

Definition at line 41 of file Mutation.h.

◆ probability_

double MutationOp::probability_

probability of usage of this mutation operator

Definition at line 40 of file Mutation.h.

◆ state_

StateP MutationOp::state_

Definition at line 39 of file Mutation.h.


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