#include <eoGeneralBreeder.h>
Public Member Functions | |
eoGeneralBreeder (eoSelectOne< EOT > &_select, eoGenOp< EOT > &_op, double _rate=1.0, bool _interpret_as_rate=true) | |
Ctor:. | |
eoGeneralBreeder (eoSelectOne< EOT > &_select, eoGenOp< EOT > &_op, eoHowMany _howMany) | |
Ctor:. | |
void | operator() (const eoPop< EOT > &_parents, eoPop< EOT > &_offspring) |
The breeder: simply calls the genOp on a selective populator! | |
virtual std::string | className () const |
The class name. | |
Private Attributes | |
eoSelectOne< EOT > & | select |
eoGenOp< EOT > & | op |
eoHowMany | howMany |
Definition at line 46 of file eoGeneralBreeder.h.
eoGeneralBreeder< EOT >::eoGeneralBreeder | ( | eoSelectOne< EOT > & | _select, | |
eoGenOp< EOT > & | _op, | |||
double | _rate = 1.0 , |
|||
bool | _interpret_as_rate = true | |||
) | [inline] |
Ctor:.
_select | a selectoOne, to be used for all selections | |
_op | a general operator (will generally be an eoOpContainer) | |
_rate | pour howMany, le nbre d'enfants a generer | |
_interpret_as_rate | explanation |
Definition at line 56 of file eoGeneralBreeder.h.
eoGeneralBreeder< EOT >::eoGeneralBreeder | ( | eoSelectOne< EOT > & | _select, | |
eoGenOp< EOT > & | _op, | |||
eoHowMany | _howMany | |||
) | [inline] |
Ctor:.
_select | a selectoOne, to be used for all selections | |
_op | a general operator (will generally be an eoOpContainer) | |
_howMany | an eoHowMany explanation |
Definition at line 69 of file eoGeneralBreeder.h.
void eoGeneralBreeder< EOT >::operator() | ( | const eoPop< EOT > & | _parents, | |
eoPop< EOT > & | _offspring | |||
) | [inline] |
The breeder: simply calls the genOp on a selective populator!
_parents | the initial population | |
_offspring | the resulting population (content -if any- is lost) |
Definition at line 80 of file eoGeneralBreeder.h.