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
f3f03d2e
Commit
f3f03d2e
authored
Apr 22, 2021
by
patrick.lambert
Browse files
with export of latitude
parent
64ea50e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/analysis/AnalyseSpawnerFeatures.java
View file @
f3f03d2e
...
@@ -322,21 +322,23 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish
...
@@ -322,21 +322,23 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish
public
String
[][]
exportToR
()
{
public
String
[][]
exportToR
()
{
int
nbBasin
=
ageOfFemaleMemories
.
size
();
int
nbBasin
=
ageOfFemaleMemories
.
size
();
String
[][]
result
=
new
String
[
nbBasin
+
1
][
5
];
String
[][]
result
=
new
String
[
nbBasin
+
1
][
6
];
// headers
// headers
result
[
0
][
0
]
=
"basin_id"
;
result
[
0
][
0
]
=
"basin_id"
;
result
[
0
][
1
]
=
"basin_name"
;
result
[
0
][
1
]
=
"basin_name"
;
result
[
0
][
2
]
=
"mean_age_female"
;
// primiparous and multiparous
result
[
0
][
2
]
=
"latitude"
;
result
[
0
][
3
]
=
"mean_age _male"
;
// primiparous and multiparous
result
[
0
][
3
]
=
"mean_age_female"
;
// primiparous and multiparous
result
[
0
][
4
]
=
"pct_primiparous"
;
result
[
0
][
5
]
=
"mean_age _male"
;
// primiparous and multiparous
result
[
0
][
6
]
=
"pct_primiparous"
;
int
i
=
1
;
int
i
=
1
;
for
(
Entry
<
RiverBasin
,
QueueMemory
<
Double
>>
entry
:
ageOfFemaleMemories
.
entrySet
())
{
for
(
Entry
<
RiverBasin
,
QueueMemory
<
Double
>>
entry
:
ageOfFemaleMemories
.
entrySet
())
{
result
[
i
][
0
]
=
String
.
valueOf
(
entry
.
getKey
().
getBasin_id
());
result
[
i
][
0
]
=
String
.
valueOf
(
entry
.
getKey
().
getBasin_id
());
result
[
i
][
1
]
=
entry
.
getKey
().
getName
();
result
[
i
][
1
]
=
entry
.
getKey
().
getName
();
result
[
i
][
2
]
=
String
.
valueOf
(
entry
.
getValue
().
getMean
());
result
[
i
][
2
]
=
String
.
valueOf
(
entry
.
getKey
().
getLatitude
());
result
[
i
][
3
]
=
String
.
valueOf
(
ageOfMaleMemories
.
get
(
entry
.
getKey
()).
getMean
());
result
[
i
][
3
]
=
String
.
valueOf
(
entry
.
getValue
().
getMean
());
result
[
i
][
4
]
=
String
.
valueOf
(
primiparousMemories
.
get
(
entry
.
getKey
()).
getMean
());
result
[
i
][
4
]
=
String
.
valueOf
(
ageOfMaleMemories
.
get
(
entry
.
getKey
()).
getMean
());
result
[
i
][
5
]
=
String
.
valueOf
(
primiparousMemories
.
get
(
entry
.
getKey
()).
getMean
());
i
++;
i
++;
}
}
...
...
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