#include <genetics.h>
Public Methods | |
MutationRate (const MutationRate &o, const MutationRate &m) | |
MutationRate (const Gentainer &g) | |
double | binaryRate () const |
double | intRate () const |
double | doubleRate () const |
double | doubleVariance () const |
void | binaryRate (double x) |
void | intRate (double x) |
void | doubleRate (double x) |
void | doubleVariance (double x) |
void | oneBitMutation (bool mt) |
bool | oneBitMutation () const |
void | autoAdaptation (bool aa) |
bool | autoAdaptation () const |
Static Public Methods | |
void | addGenesTo (Gentainer &g, const StringMap ¶ms) |
Definition at line 151 of file genetics.h.
|
Constructs the object by multiplying two existing mutation rates.
Definition at line 174 of file genetics.h. References mAutoAdaptation, mBinaryRate, mFloatRate, mFloatVariance, mIntRate, and mOneBitMutation. |
|
Reads the mutation rates from the given gentainer.
Definition at line 51 of file genetics.cc. References Gentainer::getGene(). |
|
Adds the genes controlling the mutation rates to the given gentainer.
Definition at line 61 of file genetics.cc. References Gentainer::add(), and Genstruct::hide(). Referenced by Gentainer::addPrivateGenes(). |
|
Returns the state of autoadaptivity.
Definition at line 223 of file genetics.h. |
|
Setting this to TRUE causes the message-passing to read the autoadaptation genes from the Gentainer objects.
Definition at line 220 of file genetics.h. Referenced by FloatGene::pointMutate(), BinaryGene::pointMutate(), Population::Population(), and SimplePopulation::SimplePopulation(). |
|
Sets the mutation rate for BinaryGene.
Definition at line 200 of file genetics.h. |
|
Returns the mutation rate for BinaryGene.
Definition at line 191 of file genetics.h. Referenced by Gentainer::pointMutate(), BinaryGene::pointMutate(), Population::Population(), and EAStrategy::print(). |
|
Sets the mutation rate for FloatGene.
Definition at line 204 of file genetics.h. |
|
Returns the mutation rate for FloatGene.
Definition at line 195 of file genetics.h. Referenced by Gentainer::pointMutate(), FloatGene::pointMutate(), Population::Population(), and EAStrategy::print(). |
|
Sets the mutation variance for FloatGene.
Definition at line 206 of file genetics.h. |
|
Returns the mutation variance for FloatGene.
Definition at line 197 of file genetics.h. Referenced by Gentainer::pointMutate(), IntGene::pointMutate(), FloatGene::pointMutate(), Population::Population(), and EAStrategy::print(). |
|
Sets the mutation rate for IntGene.
Definition at line 202 of file genetics.h. |
|
Returns the mutation rate for IntGene.
Definition at line 193 of file genetics.h. Referenced by IntGene::pointMutate(), Population::Population(), and EAStrategy::print(). |
|
Definition at line 215 of file genetics.h. |
|
Order that only a SINGLE leaf-level genstruct should be mutated.
Definition at line 210 of file genetics.h. |