annotate chromeister/bin/make-mean.sh @ 0:7fdf47a0bae8 draft

Uploaded
author alvarofaure
date Wed, 12 Dec 2018 07:18:40 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
1 #!/usr/bin/env bash
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
2 # Use in folder prior to all folders!
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
3
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
4 BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
5
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
6 for i in *; do
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
7
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
8
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
9 $BINDIR/generate-one-score.sh $i/index-$i.csv 0.2
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
10 value=$(awk '{sum+=$2} END { print sum/NR}' $i/index-$i.csv.inter)
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
11 echo "$i-$value"
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
12
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
13
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
14 done
7fdf47a0bae8 Uploaded
alvarofaure
parents:
diff changeset
15