Mercurial > repos > alvarofaure > bitlab
diff chromeister/bin/make-mean.sh @ 0:7fdf47a0bae8 draft
Uploaded
author | alvarofaure |
---|---|
date | Wed, 12 Dec 2018 07:18:40 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chromeister/bin/make-mean.sh Wed Dec 12 07:18:40 2018 -0500 @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Use in folder prior to all folders! + +BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +for i in *; do + + + $BINDIR/generate-one-score.sh $i/index-$i.csv 0.2 + value=$(awk '{sum+=$2} END { print sum/NR}' $i/index-$i.csv.inter) + echo "$i-$value" + + +done +