MutationOp base class. More...
#include <Mutation.h>
Public Member Functions | |
| virtual bool | mutate (GenotypeP)=0 |
| virtual bool | initialize (StateP) |
| virtual void | registerParameters (StateP) |
Public Attributes | |
| StateP | state_ |
| double | probability_ |
| probability of usage of this mutation operator | |
| GenotypeP | myGenotype_ |
MutationOp base class.
Each MutationOp class mutates a _genotype_ object. Each Genotype class must define its own set of MutationOp classes.
Definition at line 15 of file Mutation.h.
| virtual bool MutationOp::initialize | ( | StateP | ) | [inline, virtual] |
Initialize mutation operator. Called before first mutation operation.
Reimplemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, FloatingPoint::FloatingPointMutSimple, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
Definition at line 30 of file Mutation.h.
| virtual bool MutationOp::mutate | ( | GenotypeP | ) | [pure virtual] |
Performs mutation of a genotype object. The genotype object must be initialized!
Implemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, FloatingPoint::FloatingPointMutSimple, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
| virtual void MutationOp::registerParameters | ( | StateP | ) | [inline, virtual] |
Register parameters with the system. Called before MutationOp::initialize.
Reimplemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, FloatingPoint::FloatingPointMutSimple, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
Definition at line 36 of file Mutation.h.
1.7.1