EvolvingObjects
|
eoUBitXover --> classic Uniform crossover More...
#include <ga/eoBitOp.h>
Public Member Functions | |
eoUBitXover (const float &_preference=0.5) | |
(Default) Constructor. | |
virtual std::string | className () const |
The class name. | |
bool | operator() (Chrom &chrom1, Chrom &chrom2) |
Uniform crossover for binary chromosomes. | |
Private Attributes | |
float | preference |
eoUBitXover --> classic Uniform crossover
bool eoUBitXover< Chrom >::operator() | ( | Chrom & | chrom1, |
Chrom & | chrom2 | ||
) | [inline, virtual] |
Uniform crossover for binary chromosomes.
chrom1 | The first chromosome. |
chrom2 | The first chromosome. std::runtime_error if sizes don't match |
Implements eoBF< Chrom &, Chrom &, bool >.