ECF 1.5
|
Cartesian genotype: one point mutation operator. More...
#include <CartesianMutOnePoint.h>
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... | |
Cartesian genotype: one point mutation operator.
Definition at line 11 of file CartesianMutOnePoint.h.
|
virtual |
Initialize mutation operator. Called before first mutation operation.
Reimplemented from MutationOp.
Definition at line 14 of file CartesianMutOnePoint.cpp.
|
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.
|
protected |
Definition at line 58 of file CartesianMutOnePoint.cpp.
|
virtual |
Register parameters with the system. Called before MutationOp::initialize.
Reimplemented from MutationOp.
Definition at line 6 of file CartesianMutOnePoint.cpp.
|
protected |
Definition at line 14 of file CartesianMutOnePoint.h.
|
protected |
Definition at line 15 of file CartesianMutOnePoint.h.