1#include "../ECF_base.h"
2#include "FloatingPoint.h"
11 myGenotype_->registerParameter(state,
"mut.simple", (voidP)
new double(0), ECF::DOUBLE);
16 voidP sptr =
myGenotype_->getParameterValue(state,
"mut.simple");
26 uint dimension = state_->getRandomizer()->getRandomInteger((uint) FP->realValue.size());
27 FP->realValue[dimension] = state_->getRandomizer()->getRandomDouble() * (FP->getUBound() - FP->getLBound()) + FP->getLBound();
FloatingPoint class - implements genotype as a vector of floating point values.
bool initialize(StateP)
Initialize mutation operator. Called before first mutation operation.
bool mutate(GenotypeP gene)
Performs mutation of a genotype object. The genotype object must be initialized!
void registerParameters(StateP)
Register parameters with the system. Called before MutationOp::initialize.
double probability_
probability of usage of this mutation operator
GenotypeP myGenotype_
pointer to the Genotype that defines this MutationOp