CurrentInjection
inputs.CurrentInjection.CurrentInjection(self,
pre,
post,
target,=None,
name=False,
copied )
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
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 connect_one_to_one(weights=1)
.
Example:
= ann.Population(100, ann.Neuron(equations="r = sin(t)"))
inp
= ann.Population(100, Izhikevich)
pop
= 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 |