From 579baedd48404d991f04bd0303a62cb6ffae0a23 Mon Sep 17 00:00:00 2001 From: "a.croix" <croix.alexandre@gmail.com> Date: Tue, 19 Feb 2019 10:07:03 +0100 Subject: [PATCH] Fix some style --- .../java/wowa/training/TrainerParameters.java | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/main/java/be/cylab/java/wowa/training/TrainerParameters.java b/src/main/java/be/cylab/java/wowa/training/TrainerParameters.java index 1f47700..9c28756 100644 --- a/src/main/java/be/cylab/java/wowa/training/TrainerParameters.java +++ b/src/main/java/be/cylab/java/wowa/training/TrainerParameters.java @@ -20,28 +20,27 @@ public class TrainerParameters { /** * Contains parameters for the WOWA trainer. * - * @param populationSize Size of the population for the Genetic Algorithm (greater than 2) - * @param crossoverRate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99) - * @param mutationRate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99) - * @param selectionMethod Method to select parents for the next generation. RWS or TOS - * @param maxGenerationNumber Max generation number before the algorithm stop + * @param population_size Size of the population for the Genetic Algorithm (greater than 2) + * @param crossover_rate Crossover rate for the genetic algorithm. Percentage of the population kept to generate the next generation (1-99) + * @param mutation_rate Mutation rate for the genetic algorithm. percentage of genes mutated in the next generation (1-99) + * @param selection_method Method to select parents for the next generation. RWS or TOS + * @param max_generation_number Max generation number before the algorithm stop */ public TrainerParameters( //Logger logger, - int populationSize, - int crossoverRate, - int mutationRate, - int selectionMethod, - int maxGenerationNumber + int population_size, + int crossover_rate, + int mutation_rate, + int selection_method, + int max_generation_number ) { //this.setLogger(logger); - this.setPopulationSize(populationSize); - this.setCrossoverRate(crossoverRate); - this.setMutationRate(mutationRate); - this.setSelectionMethod(selectionMethod); - this.setSelectionMethod(selectionMethod); - this.setMaxGenerationNumber(maxGenerationNumber); + this.setPopulationSize(population_size); + this.setCrossoverRate(crossover_rate); + this.setMutationRate(mutation_rate); + this.setSelectionMethod(selection_method); + this.setMaxGenerationNumber(max_generation_number); } -- GitLab