Rename Roulette as RouletteSelection.
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 14:42:44 +0000 (16:42 +0200)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 14:42:44 +0000 (16:42 +0200)
src/main.cpp
src/selection/rouletteSelection.h [moved from src/selection/roulette.h with 97% similarity]

index 36dd6028c472b0b983d04aaeab8652eb0d04e1c5..51beb23d76b9edccb679b3159d005c7cb61f5c11 100644 (file)
@@ -8,7 +8,7 @@
 #include "generation.h"
 #include "generator/bit.h"
 
-#include "selection/roulette.h"
+#include "selection/rouletteSelection.h"
 #include "selection/linearRankSelection.h"
 #include "crossover/crossover.h"
 #include "mutation/mutation.h"
similarity index 97%
rename from src/selection/roulette.h
rename to src/selection/rouletteSelection.h
index 4371df68ee55b8a075d9a13c09cbe6b3ddf19087..009c8a66e47247d91ca7fdf3819fc2341ce6b07b 100644 (file)
@@ -19,7 +19,7 @@ namespace genetic {
          * Applies Selection on given Generation using Roulette method.
          */
         template < typename _Chromosome >
-        class Roulette : public Selection<_Chromosome> {
+        class RouletteSelection : public Selection<_Chromosome> {
         public:
             /**
              * Parent Selection class
@@ -187,7 +187,7 @@ namespace genetic {
              *      Selection
              * @param _fitness Fitness method to calculate fitness of Chromosomes
              */
-            Roulette(Generation<_Chromosome> _generation, genetic::Fitness<_Chromosome>& _fitness) :
+            RouletteSelection(Generation<_Chromosome> _generation, genetic::Fitness<_Chromosome>& _fitness) :
                 Selection<_Chromosome>(_generation, _fitness) {
                 this->generation = _generation;
                 this->fitness = _fitness;