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:
parent
51c15ed0b8
commit
e71aea497f
6 changed files with 25 additions and 21 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue