Inheritance diagram for eoOneToOneBreeder< EOT >:

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< EOT > | select |
| double | pReplace |
| eoHowMany | howMany |
Definition at line 52 of file eoOneToOneBreeder.h.
| eoOneToOneBreeder< EOT >::eoOneToOneBreeder | ( | eoGenOp< EOT > & | _op, | |
| eoEvalFunc< EOT > & | _eval, | |||
| double | _pReplace = 1.0, |
|||
| eoHowMany | _howMany = eoHowMany(1.0) | |||
| ) | [inline] |
Ctor:.
| _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.
| 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.
| _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().
1.4.7