#include <GLMutatorCombined.h>
Public Member Functions | |
TParameters (const vector< GLBaseMutator * > &mutators, const vector< double > &weights=vector< double >(0), TUsage apply_mutators=COMBINED) | |
TParameters (const TParameters *source) | |
virtual GLBaseParameters * | copy () const |
Public Attributes | |
TUsage | t_apply_mutators |
vector< GLBaseMutator * > | tv_mutators |
Vector of 'basic' mutators. | |
vector< double > | tv_weights |
Definition at line 160 of file GLMutatorCombined.h.
GLMutatorCombined::TParameters::TParameters | ( | const vector< GLBaseMutator * > & | mutators, | |
const vector< double > & | weights = vector<double>(0) , |
|||
TUsage | apply_mutators = COMBINED | |||
) | [inline] |
Creates new exemplar of GLMutatorCombined:: TParameters class.
mutators | vector of mutators to be used in combine mutator. These 'submutators' will be destroyed in the combined mutator's destructor. | |
apply_mutators | the way, how 'submutators' will be applyed -- all of them to the single organism during the mutation (SEPARATE) or just one of them will be randomly chosen (COMBINED). In first case the vector of weights must be supplied and be of the same size as the vector of 'submutators'. | |
weights | determine the probability with which particular 'submutator' from the set will be chosen (see description of the GLMutatorCombined constructor for more information). When supplied must be the size of 'mutators' vector. |
Definition at line 177 of file GLMutatorCombined.h.
GLMutatorCombined::TParameters::TParameters | ( | const TParameters * | source | ) | [inline] |
Copying constructor. Note, that pointers in the 'mutators' vector will be copied as pointers -- no actual copies of classes will be created.
source | source of the data to copy; |
Definition at line 190 of file GLMutatorCombined.h.
virtual GLBaseParameters* GLMutatorCombined::TParameters::copy | ( | ) | const [inline, virtual] |
Creates the copy of the parameters.
Implements GLBaseParameters.
Definition at line 200 of file GLMutatorCombined.h.
Determines how the multiple mutators will be applied to organisim (all together or one at a time).
Definition at line 205 of file GLMutatorCombined.h.
vector<double> GLMutatorCombined::TParameters::tv_weights |
vector of weights (probability that one of the mutator will be chosen to mutate given organism, make sense only when t_apply_mutators == SEPARATE)
Definition at line 211 of file GLMutatorCombined.h.