X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e1a1d1324d3c3d83f783e886783d89e96bc63f1a..2955afe732becd712d718abaf6806aef3c0998a6:/Experimentations/make_params?ds=inline diff --git a/Experimentations/make_params b/Experimentations/make_params index d2098c9..2d5c26b 100755 --- a/Experimentations/make_params +++ b/Experimentations/make_params @@ -3,7 +3,7 @@ set -e TEMPLATE=${1:-"ag_parameters"} -PREFIX=param +PREFIX=${2:-"param"} log() { echo "-#- $@" >&2 @@ -16,10 +16,13 @@ die() { test -r "$TEMPLATE" || die "file not found: $TEMPLATE" +source "$TEMPLATE" || die "cannot read file: $TEMPLATE" +declare -a common_opts=( "${MORE_ARGS[@]}" ) + for flavour in "I" "R"; do for distrib in "1" "N"; do for ratio in "1000:1" "100:1" "10:1" "1:1" "1:10" "1:100" "1:1000"; do - declare -a opts=( -x4 -m1e-4 -M10 ) + declare -a opts=( "${common_opts[@]}" ) case "$flavour" in "I") opts+=( -Z ) ;; "R") : ;;