Multilinear state updater¶

class
brian.experimental.multilinearstateupdater.
MultiLinearNeuronGroup
(eqs, subs, clock=None, level=0, **kwds)¶ Make a NeuronGroup with a linear differential equation for each neuron
You give a single set of differential equations with parameters, the variables you want substituted should be defined as parameters in the equations, but they will not be treated as parameters, instead they will be substituted. You also pass a list of variables to have their values substituted, and these names should exist in the namespace initialising the MultiLinearNeuronGroup.
Arguments:
eqs
 should be the equations, and must be a string not an
Equations
object. subs
 A list of variables to be substituted with values.
level
 How many levels up to look for the equations’ namespace.
clock
 If you want.
kwds
 Any additonal arguments to pass to
NeuronGroup
init.
Example:
eqs = '''
dv/dt = k*v/(1*second) : 1
dw/dt = k*w/(1*second) : 1
k : 1
'''
k = array([1,2,3])
subs = ['k']
G = MultiLinearNeuronGroup(eqs, subs)
G.v = 1
G.w = 0
M = StateMonitor(G, 'v', record=True)
run(1*second)
for i in range(len(G)):
plot(M.times, M[i])
show()