summaryrefslogtreecommitdiff
path: root/toolbin/extract_weight_dist
blob: 5377838cf680af45257d13c858a084cde92d5854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
contact: Jan Huwald // Impressum