eoRealUXover< EOT > Class Template Reference

Inheritance diagram for eoRealUXover< EOT >:

eoQuadOp< EOType > eoOp< EOType > eoBF< EOType &, EOType &, bool > eoFunctorBase 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 457 of file eoRealOp.h.


Constructor & Destructor Documentation

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

(Default) Constructor.

Parameters:
_preference bias in the choice (usually, no bias == 0.5)

Definition at line 464 of file eoRealOp.h.


Member Function Documentation

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

Uniform crossover for real std::vectors.

Parameters:
_eo1 The first parent
_eo2 The second parent runtime_error if sizes don't match

Definition at line 479 of file eoRealOp.h.

References eoRng::flip(), and eoRealUXover< EOT >::preference.


The documentation for this class was generated from the following file:
Generated on Thu Apr 19 11:02:33 2007 for EO by  doxygen 1.4.7