eoRealUXover< EOT > Class Template Reference
Inheritance diagram for eoRealUXover< EOT >:
eoQuadOp< EOT > eoOp< EOT > eoBF< EOT &, EOT &, bool > eoFunctorBase binary_function

List of all members.

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

Detailed Description

template<class EOT>
class eoRealUXover< EOT >

Definition at line 466 of file eoRealOp.h.

Constructor & Destructor Documentation

template<class EOT >
eoRealUXover< EOT >::eoRealUXover ( const float &  _preference = 0.5) [inline]

(Default) Constructor.

_preferencebias in the choice (usually, no bias == 0.5)

Definition at line 473 of file eoRealOp.h.

Member Function Documentation

template<class EOT >
bool eoRealUXover< EOT >::operator() ( EOT &  _eo1,
EOT &  _eo2 
) [inline, virtual]

Uniform crossover for real std::vectors.

_eo1The first parent
_eo2The second parent
std::runtime_errorif sizes don't match

Implements eoBF< EOT &, EOT &, bool >.

Definition at line 488 of file eoRealOp.h.

References eoRng::flip().

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends