From: Rafał Długołęcki Date: Mon, 6 Apr 2015 14:40:14 +0000 (+0200) Subject: Remove unnecessary comments. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=7acfa4c764e88eefecf9a55e70cbf01a93fcf436;p=genetic.git Remove unnecessary comments. --- 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);