FlipBit Mutation. More...

Inheritance diagram for FlipBit:

List of all members.

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

FlipBit Mutation.

Description
Flip the bits with probability given by mutationRate
Warnings

Definition at line 36 of file flipbit.h.


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: