Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SimAquaLife
GR3D
Commits
8285291e
Commit
8285291e
authored
Feb 17, 2021
by
patrick.lambert
Browse files
replace Double[] by double[] in getRangeDistribution
parent
2da3219b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/species/DiadromousFishGroup.java
View file @
8285291e
...
...
@@ -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
D
ouble
[]
getRangeDistribution
()
{
public
d
ouble
[]
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
;
D
ouble
[]
rangeDistribution
=
new
D
ouble
[
3
];
d
ouble
[]
rangeDistribution
=
new
d
ouble
[
3
];
rangeDistribution
[
0
]
=
(
latitudeEffective
.
isEmpty
()
?
(
southernBasin
+
northernBasin
)
/
2
.
:
nbBasin
-
latitudeEffective
.
calculateMedian
());
rangeDistribution
[
1
]
=
Math
.
min
(
southernBasin
,
northernBasin
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment