diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
commit | 420d2ef464d4a741028e132e662d5626806a41f5 (patch) | |
tree | 1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /toolbin/topo |
Diffstat (limited to 'toolbin/topo')
-rwxr-xr-x | toolbin/topo | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/toolbin/topo b/toolbin/topo new file mode 100755 index 0000000..b712433 --- /dev/null +++ b/toolbin/topo @@ -0,0 +1,34 @@ +#!/bin/bash + +set -e + +function neurons { + for i in $(seq 0 99); do + echo $((($i + $2) * $1 % 800)); + done \ + | sort -un | tr "\n" , \ + | sed 's/,$//' +} + +function synapses { + ~/rasimu/bin/list_synapses $1 $2 \ + | sort -R \ + | head -n100 \ + | cut -f1 | tr "\n" , \ + | sed 's/,$//' +} + +I1=$(neurons 1 0) +I2=$(neurons 997 0) +O1=$(neurons 1 88) +O2=$(neurons 937 88) +I1O1=$(synapses $I1 $O1) +I1O2=$(synapses $I1 $O2) + + +echo "I1 $I1 +I2 $I2 +O1 $O1 +O2 $O2 +I1O2 $I1O1 +I1O2 $I1O2"
\ No newline at end of file |