summaryrefslogtreecommitdiff
path: root/toolbin/topo
diff options
context:
space:
mode:
Diffstat (limited to 'toolbin/topo')
-rwxr-xr-xtoolbin/topo34
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
contact: Jan Huwald // Impressum