From 7acfa4c764e88eefecf9a55e70cbf01a93fcf436 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 6 Apr 2015 16:40:14 +0200 Subject: [PATCH] Remove unnecessary comments. --- src/selection/linearRankSelection.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/selection/linearRankSelection.h b/src/selection/linearRankSelection.h index 8a09046..f16d096 100644 --- a/src/selection/linearRankSelection.h +++ b/src/selection/linearRankSelection.h @@ -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); -- 2.30.2