template < typename _Chromosome >
class Roulette : public Selection<_Chromosome> {
public:
+ /**
+ * Parent Selection class
+ */
typedef Selection<_Chromosome> BaseType;
+
+ /**
+ * Value type returned by the Fitness function
+ */
typedef typename BaseType::FitnessValueType FitnessValueType;
protected:
/**
*
* @param normalizedFitness multimap containing normalized Fitness
* as a key and its Chromosome as the value
- * @return new Generation of Chromosome's that passed the selection
+ * @return new Generation of Chromosome's that passed the Selection
*/
Generation<_Chromosome> spinRoulette(
multimap<FitnessValueType, _Chromosome> normalizedFitness) {
/**
* Draws new Generation using Roulette method
+ *
+ * @return new Generation of Chromosome's that passed the Selection
*/
Generation<_Chromosome> do_draw() {
multimap<FitnessValueType, _Chromosome> normalizedFitness;