summaryrefslogtreecommitdiff
path: root/toolbin/extract_weight_dist
diff options
context:
space:
mode:
Diffstat (limited to 'toolbin/extract_weight_dist')
-rwxr-xr-xtoolbin/extract_weight_dist34
1 files changed, 34 insertions, 0 deletions
diff --git a/toolbin/extract_weight_dist b/toolbin/extract_weight_dist
new file mode 100755
index 0000000..5377838
--- /dev/null
+++ b/toolbin/extract_weight_dist
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+T0=0
+T1=990
+N=900
+
+TOPO=~/rasimu/bin/list_synapses
+CP=~/rasimu/bin/default-coarse_replay
+
+NI=0-99
+NO=88-187
+NWO=$(for i in $(seq 0 99); do echo $(($i * 937 % 800)); done | sort -n | tr "\n" ',' | sed 's/,$//')
+NRO=$(for i in $(seq 0 99); do echo $(($i * 967 % 800)); done | sort -n | tr "\n" ',' | sed 's/,$//')
+NN=$(seq 0 799 | sort -R | head -n100 | sort -n | tr "\n" ',' | sed 's/,$//')
+
+SIO=$($TOPO $NI $NO | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SIN=$($TOPO $NI $NN | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SNN=$($TOPO $NN $NN | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SNO=$($TOPO $NN $NO | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SOO=$($TOPO $NO $NO | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SIWO=$($TOPO $NI $NWO | cut -f1 | head -n$N |sort -n | tr "\n" ',' | sed 's/,$//')
+SROO=$($TOPO $NRO $NO | cut -f1 | head -n$N | sort -n | tr "\n" ',' | sed 's/,$//')
+
+SMANY=$($TOPO 0-799 0-799 | cut -f1 | head -n5000 | sort -n | tr "\n" ',' | sed 's/,$//')
+
+$CP Weight $SIO $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SIN $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SNN $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SNO $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SOO $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SIWO $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+$CP Weight $SROO $T1 $(($T1+9)) | tail -n1 | cut -f2-$(($N+1))
+
+$CP Weight $SMANY $T1 $(($T1+9)) | tail -n1 | cut -f2-5001 >&3 \ No newline at end of file
contact: Jan Huwald // Impressum