Skip to content
Snippets Groups Projects
Commit c2a26bf2 authored by Tibo's avatar Tibo
Browse files

Merge branch 'master' into 'fix-checkstyle'

# Conflicts:
#   src/main/java/be/cylab/java/wowa/training/Example.java
#   src/main/java/be/cylab/java/wowa/training/Trainer.java
parents e11eff8d caa9fccb
No related branches found
No related tags found
1 merge request!1Fix checkstyle
Pipeline #1057 passed
......@@ -22,12 +22,11 @@ public class SolutionDistance
* @param weights_number
*/
public SolutionDistance(final int weights_number) {
Random rnd = new Random();
this.weights_w = new double[weights_number];
this.weights_p = new double[weights_number];
for (int i = 0; i < weights_number; i++) {
this.weights_w[i] = rnd.nextDouble();
this.weights_p[i] = rnd.nextDouble();
this.weights_w[i] = Math.random();
this.weights_p[i] = Math.random();
}
this.normalize();
}
......
......@@ -322,7 +322,6 @@ public class Trainer {
child2.normalize();
solutions.add(child1);
solutions.add(child2);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment