From: Rafał Długołęcki Date: Mon, 6 Apr 2015 14:42:44 +0000 (+0200) Subject: Rename Roulette as RouletteSelection. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=4582072584b8ac9a37036fabcaa4d873bddf499f;p=genetic.git Rename Roulette as RouletteSelection. --- diff --git a/src/main.cpp b/src/main.cpp index 36dd602..51beb23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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" diff --git a/src/selection/roulette.h b/src/selection/rouletteSelection.h similarity index 97% rename from src/selection/roulette.h rename to src/selection/rouletteSelection.h index 4371df6..009c8a6 100644 --- a/src/selection/roulette.h +++ b/src/selection/rouletteSelection.h @@ -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;