From 4582072584b8ac9a37036fabcaa4d873bddf499f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 6 Apr 2015 16:42:44 +0200 Subject: [PATCH] Rename Roulette as RouletteSelection. --- src/main.cpp | 2 +- src/selection/{roulette.h => rouletteSelection.h} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/selection/{roulette.h => rouletteSelection.h} (97%) 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; -- 2.30.2