dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e7a40
)
Updated comment.
author
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Sun, 29 Mar 2015 19:45:37 +0000
(21:45 +0200)
committer
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Sun, 29 Mar 2015 19:45:37 +0000
(21:45 +0200)
src/selection/roulette.h
patch
|
blob
|
history
diff --git
a/src/selection/roulette.h
b/src/selection/roulette.h
index a4f1fd289ad8e2b2e58c4dcbef44e00e8eb87f6f..88141986e214ab7760abcef7bd01895c36f534ff 100644
(file)
--- 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;