-
Notifications
You must be signed in to change notification settings - Fork 2
/
background_syn_distrib.hoc
49 lines (39 loc) · 1.24 KB
/
background_syn_distrib.hoc
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//Notice the difference between Basketball synaptic inputs and others
numsegsp = 0 // will be total number of segments
forsec spinydend {numsegsp+=nseg}
numsegbs = 0
forsec bs {numsegbs+=nseg}
objref mvecpf,mvecst,mvecbs
mvecpf = new Vector(numsegsp) // will hold cumulative sums of segment length
mvecst = new Vector(numsegsp)
mvecbs = new Vector(numsegbs)
// each element in mvecpf corresponds to a segment in seclist
ii = 0 // to iterate over mvecpf
mtotalpf = 0 // will be total length in seclist
forsec spinydend {
for (x,0) { // iterate over internal nodes of current section
mtotalpf += L/nseg // or area(x) if density is in (number)/area
mvecpf.x[ii] = mtotalpf
ii += 1
}
}
mvecst = mvecpf.c
ii = 0 // to iterate over mvecpf
mtotalbs = 0 // will be total length in seclist
forsec bs {
for (x,0) { // iterate over internal nodes of current section
mtotalbs += L/nseg // or area(x) if density is in (number)/area
mvecbs.x[ii] = mtotalbs
ii += 1
}
}
objref nvecpf, nvecst, nvecbs
objref ampsynlist,gabastsynlist,gababssynlist
objref ampsynprelist,gabastsynprelist,gababssynprelist
objref ampcon[300000]
objref gabastcon[300000]
objref gababscon[300000]
SEED_0 = 100
SEED_1 = 1223456
SEED_2 = 3254764
use_mcell_ran4(1)