EvolvingObjects
|
Swap two components of a chromosome. More...
#include <eoSwapMutation.h>
Public Member Functions | |
eoSwapMutation (const unsigned _howManySwaps=1) | |
CTor. | |
virtual std::string | className () const |
The class name. | |
bool | operator() (Chrom &chrom) |
Swap two components of the given chromosome. | |
Private Attributes | |
unsigned int | howManySwaps |
Swap two components of a chromosome.
Definition at line 40 of file eoSwapMutation.h.
bool eoSwapMutation< Chrom >::operator() | ( | Chrom & | chrom | ) | [inline, virtual] |
Swap two components of the given chromosome.
chrom | The cromosome which is going to be changed. |
Implements eoUF< Chrom &, bool >.
Definition at line 59 of file eoSwapMutation.h.
References eoRng::random().