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
No related merge requests found
......@@ -8,6 +8,7 @@ export def main [
k: int,
n: int,
nb_measurements: int,
nb_scenarii: int,
measurement_schedule: int,
max_t: int,
strategies: list<string>,
......@@ -30,17 +31,24 @@ export def main [
}
$options.strategies | each {|s|
let diversity = ^$BIN ...[
$options.nb_bytes,
-k $options.k
-n $options.n
--nb-measurements $options.nb_measurements
--measurement-schedule $options.measurement_schedule
-t $options.max_t
--test-case recoding
--strategy $s
--environment $options.environment
] | lines | into float
let res = 1..$options.nb_scenarii | each {
^$BIN ...[
$options.nb_bytes,
-k $options.k
-n $options.n
--nb-measurements $options.nb_measurements
--measurement-schedule $options.measurement_schedule
-t $options.max_t
--test-case recoding
--strategy $s
--environment $options.environment
] | lines | into float
}
let diversity = $res
| skip 1
| reduce --fold $res.0 {|it, acc| $acc | zip $it | each { flatten }}
| each { math avg }
{
strategy: $s,
......
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