CurrentInjection
self, pre, post, target, name=None, copied=False, net_id=0) CurrentInjection(
Inject current from a rate-coded population into a spiking population.
The pre-synaptic population must be be rate-coded, the post-synaptic one must be spiking, both must have the same size and no plasticity is allowed.
For each post-synaptic neuron, the current g_target
(e.g. g_exc
or g_inh
) will be set at each time step to the firing rate r
of the pre-synaptic neuron with the same rank.
The projection must be connected with connect_current()
, which takes no parameter and does not accept delays. It is equivalent to one_to_one(weights=1.0)
.
Example:
= net.create(100, ann.Neuron(equations="r = 5*sin(t/1000)"))
inp = net.create(100, ann.Izhikevich)
pop
= net.connect(ann.CurrentInjection(inp, pop, 'exc'))
proj proj.connect_current()
Parameters
Name | Type | Description | Default |
---|---|---|---|
pre | Population | pre-synaptic population. | required |
post | Population | post-synaptic population. | required |
target | str | type of the connection. | required |
name | str | optional name. | None |