FlipBit Class Reference
Inheritance diagram for FlipBit:

Public Member Functions | |
FlipBit () | |
Constructor. | |
virtual | ~FlipBit () |
Destructor. | |
virtual void | mutate (Genotype *) |
Mutate the Genotype. | |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. |
Detailed Description
- Description
- Flip the bits with probability given by mutationRate
- Warnings
Constructor & Destructor Documentation
FlipBit | ( | ) |
Constructor.
Definition at line 26 of file flipbit.cpp.
~FlipBit | ( | ) | [virtual] |
Destructor.
Definition at line 30 of file flipbit.cpp.
Member Function Documentation
void describe | ( | QString | type | ) | [static] |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Reimplemented from Mutation.
Definition at line 43 of file flipbit.cpp.
References ParameterSettable::addTypeDescription().
void mutate | ( | Genotype * | gen | ) | [virtual] |
Mutate the Genotype.
Implements Mutation.
Definition at line 34 of file flipbit.cpp.
References RandomGenerator::getBool(), globalRNG, Mutation::mutationRate(), Genotype::size(), and Genotype::toggle().
The documentation for this class was generated from the following files:
- ga/include/mutations/flipbit.h
- ga/src/mutations/flipbit.cpp