Few cosmetic modifs:

put the #define of some boolean in eoData.h
   added some include that were missing (unnoticed because of include<eo>)
   some checks in eoXXXTournamentSelect
This commit is contained in:
evomarc 2001-04-13 08:57:40 +00:00
commit e71aea497f
6 changed files with 25 additions and 21 deletions

View file

@ -46,11 +46,15 @@ template <class EOT> class eoStochTournamentSelect: public eoSelectOne<EOT>
///
eoStochTournamentSelect(float _Trate = 1.0 ) : eoSelectOne<EOT>(), Trate(_Trate)
{
// consistency check
// consistency checks
if (Trate < 0.5) {
cerr << "Warning, Tournament rate should be > 0.5\nAdjusted to 0.55\n";
Trate = 0.55;
}
if (Trate > 1) {
cerr << "Warning, Tournament rate should be < 1\nAdjusted to 1\n";
Trate = 1;
}
}
/** Perform the stochastic tournament */