Commit 8285291e authored by patrick.lambert's avatar patrick.lambert
Browse files

replace Double[] by double[] in getRangeDistribution

parent 2da3219b
......@@ -489,7 +489,7 @@ public class DiadromousFishGroup extends AquaNismsGroup<DiadromousFish, RIOBasin
Scanner scanner;
obs1900 = new HashMap<String, Integer>();
if (fileNameInputForInitialObservation.isEmpty()) {
if (!fileNameInputForInitialObservation.isEmpty()) {
try {
reader = new FileReader(fileNameInputForInitialObservation);
// Parsing the file
......@@ -908,7 +908,7 @@ public class DiadromousFishGroup extends AquaNismsGroup<DiadromousFish, RIOBasin
@Observable(description = "Range distribution")
public Double[] getRangeDistribution() {
public double[] getRangeDistribution() {
double southernBasin = 0;
double nbBasin = getEnvironment().getNbRiverBasin();
double northernBasin = nbBasin;
......@@ -930,7 +930,7 @@ public class DiadromousFishGroup extends AquaNismsGroup<DiadromousFish, RIOBasin
}
southernBasin = nbBasin - southernBasin;
northernBasin = nbBasin - northernBasin;
Double[] rangeDistribution = new Double[3];
double[] rangeDistribution = new double[3];
rangeDistribution[0] = (latitudeEffective.isEmpty() ? (southernBasin + northernBasin) / 2.
: nbBasin - latitudeEffective.calculateMedian());
rangeDistribution[1] = Math.min(southernBasin, northernBasin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment