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. | |
void | registerParameters (StateP) |
Register parameters with the system. Called before MutationOp::initialize. | |
Protected Member Functions | |
void | mutOneValue (Cartesian *mut, int mutPoint) |
Protected Attributes | |
double | mutProb_ |
bool | useMutProb_ |
Cartesian genotype: one point mutation operator.
Definition at line 11 of file CartesianMutOnePoint.h.
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.