Changed a few things in the eoPerf2Worth classes, EO.h and eoSelectOne.h are functionally unchanged
This commit is contained in:
parent
9bbac485f9
commit
665e20b0f8
10 changed files with 331 additions and 80 deletions
|
|
@ -31,19 +31,20 @@
|
|||
#include <eoFunctor.h>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/** eoSelectOne selects only one element from a whole population.
|
||||
/** eoSelectOne selects only one element from a whole population.
|
||||
Most selection techniques are simply repeated applications
|
||||
of eoSelectOne.
|
||||
|
||||
|
||||
@see eoSelectMany, eoSelectRandom, eoDetTournament, eoStochTournament, eoProportional
|
||||
*/
|
||||
template<class EOT>
|
||||
template<class EOT, class WorthT = typename EOT::Fitness>
|
||||
class eoSelectOne : public eoUF<const eoPop<EOT>&, const EOT&>
|
||||
{
|
||||
public :
|
||||
|
||||
/// virtual function to setup some population stats (for instance eoProportional can benefit greatly from this)
|
||||
virtual void setup(const eoPop<EOT>&) {}
|
||||
/// virtual function to setup some population stats (for instance eoProportional can benefit greatly from this)
|
||||
virtual void setup(const eoPop<EOT>& _pop)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue