ECF 1.5
Public Member Functions | Public Attributes | List of all members

MutationOp base class. More...

#include <Mutation.h>

Inheritance diagram for MutationOp:
Binary::BinaryMutMix Binary::BinaryMutSimple BitString::BitStringMutMix BitString::BitStringMutSimple FloatingPoint::FloatingPointMutSimple GEPChromosome::GEPChromosomeMutGauss GEPChromosome::GEPChromosomeMutOp IntGenotype::IntGenotypeMutOp IntGenotype::IntGenotypeMutOp Permutation::PermutationMutIns Permutation::PermutationMutInv Permutation::PermutationMutToggle Tree::TreeMutGauss Tree::TreeMutHoist Tree::TreeMutNodeComplement Tree::TreeMutNodeReplace Tree::TreeMutPermutation Tree::TreeMutShrink Tree::TreeMutSubtree cart::CartesianMutOnePoint cartesian::MutateConnection cartesian::MutateConnectionSilent cartesian::MutateFunction cartesian::MutateFunctionSilent cartesian::MutateFunctionSwap cartesian::MutateIntoSilent

Public Member Functions

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

Public Attributes

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

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()

virtual bool MutationOp::initialize ( StateP  )
inlinevirtual

◆ mutate()

virtual bool MutationOp::mutate ( GenotypeP  )
pure virtual

◆ registerParameters()

virtual void MutationOp::registerParameters ( StateP  )
inlinevirtual

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: