-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathizhi2003b.mod
More file actions
57 lines (49 loc) · 867 Bytes
/
izhi2003b.mod
File metadata and controls
57 lines (49 loc) · 867 Bytes
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
50
51
52
53
54
55
56
57
NEURON {
POINT_PROCESS Izhi2003b
RANGE a,b,c,d,f,g,Iin,fflag,thresh
NONSPECIFIC_CURRENT i
}
UNITS {
(mV) = (millivolt)
(nA) = (nanoamp)
(nF) = (nanofarad)
}
INITIAL {
v=-65
u=0.2*v
net_send(0,1)
}
PARAMETER {
a = 0.02 (/ms)
b = 0.2 (/ms)
c = -65 (mV) : reset potential after a spike
d = 2 (mV/ms)
f = 5
g = 140
Iin = 10
thresh = 30 (mV) : spike threshold
fflag = 1
}
ASSIGNED {
v (mV)
i (nA)
}
STATE {
u (mV/ms)
}
BREAKPOINT {
SOLVE states METHOD derivimplicit : cnexp # either method works
i = -0.001*(0.04*v*v + f*v + g - u + Iin)
}
DERIVATIVE states {
u' = a*(b*v - u)
}
NET_RECEIVE (w) {
if (flag == 1) {
WATCH (v > thresh) 2
} else if (flag == 2) {
net_event(t)
v = c
u = u + d
}
}