EvolvingObjects
|
Combined INIT: a proportional recombination of eoInit objects. More...
#include <eoCombinedInit.h>
Public Member Functions | |
eoCombinedInit (eoInit< EOT > &_init, double _rate) | |
Ctor, make sure that at least one eoInit is present. | |
void | add (eoInit< EOT > &_init, double _rate) |
The usual method to add objects to the combination. | |
virtual void | printOn (std::ostream &_os) |
outputs the operators and percentages | |
virtual void | operator() (EOT &_eo) |
Performs the init: chooses among all initializers using roulette wheel on the rates. | |
virtual std::string | className (void) const |
className: Mandatory because of eoCombinedInit. | |
Private Attributes | |
std::vector< eoInit< EOT > * > | initializers |
std::vector< double > | rates |
Combined INIT: a proportional recombination of eoInit objects.
Definition at line 36 of file eoCombinedInit.h.
virtual std::string eoCombinedInit< EOT >::className | ( | void | ) | const [inline, virtual] |
className: Mandatory because of eoCombinedInit.
SHould be pure virtual, but then we should go over the whole code to write the method for all derived classes ... MS 16/7/04
Reimplemented from eoInit< EOT >.
Definition at line 87 of file eoCombinedInit.h.
Referenced by eoCombinedInit< EOT >::printOn().