summaryrefslogtreecommitdiff
path: root/toolbin/groupact_over_ofreq
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
commit420d2ef464d4a741028e132e662d5626806a41f5 (patch)
tree1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /toolbin/groupact_over_ofreq
Initial commitHEADmaster
Diffstat (limited to 'toolbin/groupact_over_ofreq')
-rwxr-xr-xtoolbin/groupact_over_ofreq49
1 files changed, 49 insertions, 0 deletions
diff --git a/toolbin/groupact_over_ofreq b/toolbin/groupact_over_ofreq
new file mode 100755
index 0000000..ca0d1cd
--- /dev/null
+++ b/toolbin/groupact_over_ofreq
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+set -e
+#for EXP in \
+ # "EligibilityTrace 24456,15746,16263,25347,19718,14985,14090,13186,12802,21251,19844,20352,12930,18568,16128,14987,15109,17281,16269,13187 71688,86404,27521,43524,62594,59787,7174,55424,23182,75779,59778,42241,40711,86414,97665,7812,16899,96135,86403,22528" \
+ # "LTPTrace 24456,15746,16263,25347,19718,14985,14090,13186,12802,21251,19844,20352,12930,18568,16128,14987,15109,17281,16269,13187 71688,86404,27521,43524,62594,59787,7174,55424,23182,75779,59778,42241,40711,86414,97665,7812,16899,96135,86403,22528" \
+ # "LTDTrace 100,101,103,110,117,118,123,126,127,135,145,154,155,159,166,191,198 137,274,411,548,685,22,159,296,433,570,707,44,181,318,455,592,729"; do
+
+# for EXP in \
+# "EligibilityTrace 20361,19200,22148,18176,18177,16131,22278,11400,11267,18051,20483,18050,14983,14724,21256,14338,16386,17159,11916,11910,12685,22657,18693,23297,14599,21376,16768,12294,14851,17419,20864,21001,22543,14339,12163,19076,21379,23552,11398,19593,20613,17538,23171,18823,20362,11655,18309,20101,12418,21123,22547,19850,22665,22273,13450,14083,18179,23175,16648,11906,23560,23946,18945,17415,11904,22402,16515,21383,22401,22275,14084,12292,16257,20228,20354,18564,16262,19078,12546,19972,19074,12553,14080,11917,18432,17289,23565,14464,23425,17287,12677,15873,23048,22658,21251,14211,15497,14219,13063,16136 49545,35075,27394,75650,7,74121,8,42757,25856,12931,30472,90759,76298,19077,651,74119,65536,82437,9863,35080,76293,94724,48003,55687,35077,76290,74762,52609,47372,68613,44295,52610,46465,13,14466,40324,44928,2180,69511,67971,75654,61829,97793,48903,6784,12936,51077,74118,87042,80904,44293,85510,74114,17545,47371,74758,16646,51086,30465,12930,76291,6786,44936,33543,83975,63368,77828,40326,38153,49540,20615,67969,20614,3718,32001,96257,8320,73225,6788,66434,52611,92299,39683,16650,74767,99971,63375,30471,52612,41221,67973,22785,79369,70157,6790,97800,17540,44297,2178,21253" \
+# "LTPTrace 20361,19200,22148,18176,18177,16131,22278,11400,11267,18051,20483,18050,14983,14724,21256,14338,16386,17159,11916,11910,12685,22657,18693,23297,14599,21376,16768,12294,14851,17419,20864,21001,22543,14339,12163,19076,21379,23552,11398,19593,20613,17538,23171,18823,20362,11655,18309,20101,12418,21123,22547,19850,22665,22273,13450,14083,18179,23175,16648,11906,23560,23946,18945,17415,11904,22402,16515,21383,22401,22275,14084,12292,16257,20228,20354,18564,16262,19078,12546,19972,19074,12553,14080,11917,18432,17289,23565,14464,23425,17287,12677,15873,23048,22658,21251,14211,15497,14219,13063,16136 49545,35075,27394,75650,7,74121,8,42757,25856,12931,30472,90759,76298,19077,651,74119,65536,82437,9863,35080,76293,94724,48003,55687,35077,76290,74762,52609,47372,68613,44295,52610,46465,13,14466,40324,44928,2180,69511,67971,75654,61829,97793,48903,6784,12936,51077,74118,87042,80904,44293,85510,74114,17545,47371,74758,16646,51086,30465,12930,76291,6786,44936,33543,83975,63368,77828,40326,38153,49540,20615,67969,20614,3718,32001,96257,8320,73225,6788,66434,52611,92299,39683,16650,74767,99971,63375,30471,52612,41221,67973,22785,79369,70157,6790,97800,17540,44297,2178,21253" \
+# "LTDTrace 159,150,173,142,142,126,174,89,88,141,160,141,117,115,166,112,128,134,93,93,99,177,146,182,114,167,131,96,116,136,163,164,176,112,95,149,167,184,89,153,161,137,181,147,159,91,143,157,97,165,176,155,177,174,105,110,142,181,130,93,184,187,148,136,93,175,129,167,175,174,110,96,127,158,159,145,127,149,98,156,149,98,110,93,144,135,184,113,183,135,99,124,180,177,166,111,121,111,102,126 387,274,214,591,0,579,0,334,202,101,238,709,596,149,5,579,512,644,77,274,596,740,375,435,274,596,584,411,370,536,346,411,363,0,113,315,351,17,543,531,591,483,764,382,53,101,399,579,680,632,346,668,579,137,370,584,130,399,238,101,596,53,351,262,656,495,608,315,298,387,161,531,161,29,250,752,65,572,53,519,411,721,310,130,584,781,495,238,411,322,531,178,620,548,53,764,137,346,17,166"; do
+# for EXP in \
+for EXP in \
+ "EligibilityTrace 20996,22019,19716,17922,23177,21379,11779,17418,11658,16897,22531,21376,22018,22028,18304,14474,17543,18048,20739,23044,18562,13571,23302,17415,17414,22410,16768,15752,14981,22659,19975,21385,16384,20613,11661,16010,19333,22914,16770,21125,17416,17667,11265,11915,18956,15877,17544,22664,23939,22787,17025,15235,16261,14221,22149,21123,23172,14214,20736,11919,22536,13318,19852,19971,17028,14090,16652,13058,19206,23297,23554,14977,18437,11652,21251,11914,11273,14601,19718,11266,12929,13954,23682,22784,12686,16257,13829,15107,12418,21377,16901,15234,18183,16136,15244,17413,23811,16518,11904,15499 9987,50057,76672,30344,47873,23427,12161,70402,102019,9992,53510,23429,52873,44417,78850,67586,7173,47240,99840,52865,46598,38154,33157,26888,5892,99843,44416,77315,5897,76033,12165,100485,26890,7171,73861,73217,56320,70406,8707,9347,24068,97032,43782,35976,31874,93571,259,14986,94215,27523,9344,65410,97027,5898,58497,32516,256,14339,3718,93573,3072,58504,99844,47872,64131,88579,62595,42253,17797,102024,17160,73225,44419,17164,76041,42244,96391,49413,68226,7182,59137,44426,61318,77316,97670,81668,70413,18436,23426,55688,18439,81675,85762,81664,55683,90754,35335,56322,47232,35336"; do
+ PROP=$(echo $EXP | cut -f1 -d" ")
+ INST=$(echo $EXP | cut -f2- -d" ")
+ FD=$(pwd | sed 's#/sim/#/plot/#')/$PROP''_over_act.mean.manual_data
+ FP=$(pwd | sed 's#/sim/#/plot/#')/$PROP''_over_act.mean.svg
+ SIM=$(pwd | sed 's#.*/sim/\(.*\)/0#\1#')
+ echo $FD
+ cat .*simulate.log \
+ | egrep 'WINNER|READOUT' |grep -v SIGNAL | tr "\n" " " \
+ | sed 's/READOUT/\n/g' | cut -d" " -f2,3,6 \
+ | grep . \
+ | while read FO FWO RAWTIME; do
+ TIME=$(echo "$RAWTIME - 0.0000001" |bc);
+ echo -en "$FO\t$FWO\t";
+ for TGT in $INST; do
+ echo -ne "scale=10\n("
+ ~/rasimu/bin/$SIM-replay $PROP $TGT $TIME 10000 10001 \
+ | tail -n1 | cut -f2- | tr "\t\n" + \
+ | tee -a ~/rasimu/fuckup | sed 's/e/*10^/g'
+ echo "0)/"$(( $(echo $TGT | tr -dc , | wc -c) + 1))
+ done | bc | tr "\n" "\t"
+ echo
+ done > $FD
+
+ echo "
+f(x)=a*x+b
+g(x)=c*x+d
+fit f(x) \"$FD\" using 1:3 via a,b
+fit g(x) \"$FD\" using 2:4 via c,d
+set term svg
+set out \"$FP\"
+plot '$FD' using 1:3 title 'IO', f(x) title 'IO fit', '$FD' using 2:4 title 'IWO', g(x) title 'IWO fit'
+" | gnuplot
+ echo $FP
+done \ No newline at end of file
contact: Jan Huwald // Impressum