Skip to content
Snippets Groups Projects
Commit 143ad1f3 authored by a.croix's avatar a.croix
Browse files

Change getters and setters in SolutionDistance to public

parent 8e44e4a7
No related branches found
No related tags found
No related merge requests found
Pipeline #1238 passed
package be.cylab.java.wowa.training;
import info.debatty.java.aggregation.WOWA;
import org.jetbrains.annotations.TestOnly;
import java.util.Arrays;
import java.util.List;
......@@ -39,7 +38,7 @@ public class SolutionDistance
* @param weights_number int
* @param seed int
*/
@TestOnly
public SolutionDistance(final int weights_number, final int seed) {
Random rnd = new Random(seed);
this.weights_w = new double[weights_number];
......@@ -152,15 +151,21 @@ public class SolutionDistance
/**
* @return
*/
final double getDistance() {
public final double getDistance() {
return distance;
}
final double[] getWeightsW() {
/**
* @return
*/
public final double[] getWeightsW() {
return this.weights_w;
}
final double[] getWeightsP() {
/**
* @return
*/
public final double[] getWeightsP() {
return this.weights_p;
}
......
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