summaryrefslogtreecommitdiff
path: root/analysis/cumtrajhist.sh
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2013-06-28 14:31:14 (GMT)
committerJan Huwald <jh@sotun.de>2013-06-28 14:31:14 (GMT)
commite96ca19e6874a10ba828597fa05962dd2bdcfff7 (patch)
tree4a92ae2df1fd1b1b614df6489166274376bf970c /analysis/cumtrajhist.sh
parentf9fb52f365f2354d2133a05e7dee92eb8edc5ec4 (diff)
analysis: compute average and cumulative trajectory lengthHEADmasteranalysis
Diffstat (limited to 'analysis/cumtrajhist.sh')
-rwxr-xr-xanalysis/cumtrajhist.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/analysis/cumtrajhist.sh b/analysis/cumtrajhist.sh
new file mode 100755
index 0000000..ae6e5b2
--- /dev/null
+++ b/analysis/cumtrajhist.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+ awk '{ print $4/(1+$5), $2*$4 }' \
+| sort -g \
+| awk '
+ BEGIN { cum = 0 }
+ { print cum, $1
+ cum = cum + $2
+ last = $1 }
+ END { print cum, last }'
contact: Jan Huwald // Impressum