EvolvingObjects
|
Public Member Functions | |
eoRealUXover (const float &_preference=0.5) | |
(Default) Constructor. | |
virtual std::string | className () const |
The class name. | |
bool | operator() (EOT &_eo1, EOT &_eo2) |
Uniform crossover for real std::vectors. | |
Private Attributes | |
float | preference |
Definition at line 466 of file eoRealOp.h.
eoRealUXover< EOT >::eoRealUXover | ( | const float & | _preference = 0.5 | ) | [inline] |
(Default) Constructor.
_preference | bias in the choice (usually, no bias == 0.5) |
Definition at line 473 of file eoRealOp.h.
bool eoRealUXover< EOT >::operator() | ( | EOT & | _eo1, |
EOT & | _eo2 | ||
) | [inline, virtual] |
Uniform crossover for real std::vectors.
_eo1 | The first parent |
_eo2 | The second parent |
std::runtime_error | if sizes don't match |
Implements eoBF< EOT &, EOT &, bool >.
Definition at line 488 of file eoRealOp.h.
References eoRng::flip().