dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add BitGenerator tests. Restructure tests.
[genetic.git]
/
src
/
selection
/
linearRankSelection.h
diff --git
a/src/selection/linearRankSelection.h
b/src/selection/linearRankSelection.h
index f16d0964966c6fe884076b9263d5a59bf946e589..8bbd3cea323013f721ded44fed6e0bec4c5ef7c5 100644
(file)
--- a/
src/selection/linearRankSelection.h
+++ b/
src/selection/linearRankSelection.h
@@
-29,7
+29,12
@@
namespace genetic {
*/
typedef typename GeneticFitness::ValueType FitnessValueType;
protected:
*/
typedef typename GeneticFitness::ValueType FitnessValueType;
protected:
+ /**
+ * Type representing mapped Chromosome by its Rank value
+ */
typedef typename std::multimap<FitnessValueType, _Chromosome> ChromosomeMap;
typedef typename std::multimap<FitnessValueType, _Chromosome> ChromosomeMap;
+
+ /** Iterator for ChromosomeMap */
typedef typename ChromosomeMap::iterator ChromosomeMapIterator;
/**
typedef typename ChromosomeMap::iterator ChromosomeMapIterator;
/**
@@
-66,7
+71,7
@@
namespace genetic {
}
/**
}
/**
- *
Selection calculations should be done here.
+ *
Invokes Selection calculations of the Linear Rank Selection
*
* @return new Generation of Chromosome's that passed the Selection
*/
*
* @return new Generation of Chromosome's that passed the Selection
*/