eoOneToOneBreeder< EOT > Class Template Reference

Inheritance diagram for eoOneToOneBreeder< EOT >:

eoBreed< EOT > eoBF< A1, A2, R > eoFunctorBase List of all members.

Public Member Functions

 eoOneToOneBreeder (eoGenOp< EOT > &_op, eoEvalFunc< EOT > &_eval, double _pReplace=1.0, eoHowMany _howMany=eoHowMany(1.0))
 Ctor:.
void operator() (const eoPop< EOT > &_parents, eoPop< EOT > &_offspring)
 The breeder: iteratively calls the genOp ONCE on a selective populator after having recorded the parent Then does the replacement.
virtual std::string className () const
 The class name.

Private Attributes

eoGenOp< EOT > & op
eoEvalFunc< EOT > & eval
eoSequentialSelect< EOTselect
double pReplace
eoHowMany howMany

Detailed Description

template<class EOT>
class eoOneToOneBreeder< EOT >

Definition at line 52 of file eoOneToOneBreeder.h.


Constructor & Destructor Documentation

template<class EOT>
eoOneToOneBreeder< EOT >::eoOneToOneBreeder ( eoGenOp< EOT > &  _op,
eoEvalFunc< EOT > &  _eval,
double  _pReplace = 1.0,
eoHowMany  _howMany = eoHowMany(1.0) 
) [inline]

Ctor:.

Parameters:
_op a general operator (must MODIFY only ONE parent)
_eval an eoEvalFunc to evaluate the offspring
_select a selectoOne, to be used for all selections [sequential]
_pReplace probability that the best of parent/offspring wins [1]
_howMany eoHowMany offpsring to generate [100%]

Definition at line 62 of file eoOneToOneBreeder.h.


Member Function Documentation

template<class EOT>
void eoOneToOneBreeder< EOT >::operator() ( const eoPop< EOT > &  _parents,
eoPop< EOT > &  _offspring 
) [inline]

The breeder: iteratively calls the genOp ONCE on a selective populator after having recorded the parent Then does the replacement.

Parameters:
_parents the initial population
_offspring the resulting population (content -if any- is lost)

Definition at line 78 of file eoOneToOneBreeder.h.

References eoOneToOneBreeder< EOT >::eval, eoOneToOneBreeder< EOT >::howMany, eoOneToOneBreeder< EOT >::op, eoOneToOneBreeder< EOT >::pReplace, eoOneToOneBreeder< EOT >::select, eoPopulator< EOT >::tellp(), and eoRng::uniform().


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