From: Rafał Długołęcki Date: Sun, 29 Mar 2015 19:45:37 +0000 (+0200) Subject: Updated comment. X-Git-Url: https://git.dlugolecki.net.pl/?p=genetic.git;a=commitdiff_plain;h=dc0e03ab5006bd2e770d3a8caef40b98112de254 Updated comment. --- diff --git a/src/selection/roulette.h b/src/selection/roulette.h index a4f1fd2..8814198 100644 --- a/src/selection/roulette.h +++ b/src/selection/roulette.h @@ -108,7 +108,7 @@ namespace genetic { selected.push_back(it->second); break; } - // When NaN occur: + // When NaN occur, just get first Chromosome else if (it->first != it->first) { selected.push_back(probabilities.begin()->second); found = true;