ECF 1.5
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cart::CartesianMutOnePoint Class Reference

Cartesian genotype: one point mutation operator. More...

#include <CartesianMutOnePoint.h>

Inheritance diagram for cart::CartesianMutOnePoint:
MutationOp

Public Member Functions

bool mutate (GenotypeP gene)
 
bool initialize (StateP)
 Initialize mutation operator. Called before first mutation operation. More...
 
void registerParameters (StateP)
 Register parameters with the system. Called before MutationOp::initialize. More...
 
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...
 

Protected Member Functions

void mutOneValue (Cartesian *mut, int mutPoint)
 

Protected Attributes

double mutProb_
 
bool useMutProb_
 

Additional Inherited Members

- Public Attributes inherited from MutationOp
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

Cartesian genotype: one point mutation operator.

Definition at line 11 of file CartesianMutOnePoint.h.

Member Function Documentation

◆ initialize()

bool cart::CartesianMutOnePoint::initialize ( StateP  )
virtual

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 14 of file CartesianMutOnePoint.cpp.

◆ mutate()

bool cart::CartesianMutOnePoint::mutate ( GenotypeP  gene)
virtual

Mutation point is randomly chosen between all integer values in genotype. Chosen integer for mutation might be input connection, function or output. Considering those three cases, predetermined rules are applied in order to make valid genotype by mutation.

Implements MutationOp.

Definition at line 31 of file CartesianMutOnePoint.cpp.

◆ mutOneValue()

void cart::CartesianMutOnePoint::mutOneValue ( Cartesian mut,
int  mutPoint 
)
protected

Definition at line 58 of file CartesianMutOnePoint.cpp.

◆ registerParameters()

void cart::CartesianMutOnePoint::registerParameters ( StateP  )
virtual

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

Reimplemented from MutationOp.

Definition at line 6 of file CartesianMutOnePoint.cpp.

Member Data Documentation

◆ mutProb_

double cart::CartesianMutOnePoint::mutProb_
protected

Definition at line 14 of file CartesianMutOnePoint.h.

◆ useMutProb_

bool cart::CartesianMutOnePoint::useMutProb_
protected

Definition at line 15 of file CartesianMutOnePoint.h.


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