Skip to content
Snippets Groups Projects
Unverified Commit a0e52e95 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

measure multiple recoding scenarii and average

parent a7cebb95
No related branches found
No related tags found
1 merge request!108measure "inbreeding" for multiple recoding scenarii
...@@ -8,6 +8,7 @@ export def main [ ...@@ -8,6 +8,7 @@ export def main [
k: int, k: int,
n: int, n: int,
nb_measurements: int, nb_measurements: int,
nb_scenarii: int,
measurement_schedule: int, measurement_schedule: int,
max_t: int, max_t: int,
strategies: list<string>, strategies: list<string>,
...@@ -30,7 +31,8 @@ export def main [ ...@@ -30,7 +31,8 @@ export def main [
} }
$options.strategies | each {|s| $options.strategies | each {|s|
let diversity = ^$BIN ...[ let res = 1..$options.nb_scenarii | each {
^$BIN ...[
$options.nb_bytes, $options.nb_bytes,
-k $options.k -k $options.k
-n $options.n -n $options.n
...@@ -41,6 +43,12 @@ export def main [ ...@@ -41,6 +43,12 @@ export def main [
--strategy $s --strategy $s
--environment $options.environment --environment $options.environment
] | lines | into float ] | lines | into float
}
let diversity = $res
| skip 1
| reduce --fold $res.0 {|it, acc| $acc | zip $it | each { flatten }}
| each { math avg }
{ {
strategy: $s, strategy: $s,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment