Remove unnecessary comments.
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 14:40:14 +0000 (16:40 +0200)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 14:40:14 +0000 (16:40 +0200)
src/selection/linearRankSelection.h

index 8a090461801675d919147f228781f951e95263b2..f16d0964966c6fe884076b9263d5a59bf946e589 100644 (file)
@@ -59,7 +59,6 @@ namespace genetic {
                 double denominator = generationSize * (generationSize - 1);
 
                 for (ChromosomeMapIterator it = generationFitness.begin(); it != generationFitness.end(); it++) {
-//                     cout << "rank: " << rank << " denominator: " << denominator << " res: " << (rank-1)/denominator << "\n";
                     rankedGeneration.insert(std::make_pair(rank--/denominator, it->second));
                 }
 
@@ -87,7 +86,6 @@ namespace genetic {
                     random = (rand() % size) / (double)denominator;
 
                     for (ChromosomeMapIterator it = probabilities.begin(); it != probabilities.end(); it++) {
-//                     cout << "Random: " << random << " First: " << it->first << "\n";
                         if (random < it->first) {
                             found = true;
                             selected.push_back(it->second);