EventProjection#
- class brainpy.state.network.EventProjection(*args, **kwargs)#
Delayed, weighted delta-event projection from one population segment.
Each step it reads the pre population’s captured spike via
pre_spike()(a callable returning the full pre-population spike/counts vector), applies anInputDelay(full-delay convention, as inAlignPostProj), restricts to this projection’s pre segment, maps it to the post segment (dense weighted matmul, or element-wise forone_to_one), and registers the result as a delta input onpost.- Parameters:
pre_spike (
Callable[[],jax.Array]) – Returns the full pre-population spike (or generator counts) vector, shape(n_pre_pop,).n_pre_pop (
int) – Size of the full pre population (the dimensionpre_spikereturns).pre_local_idx (
jax.Array) – Local indices into the pre population selected by this projection.post (
Dynamics) – Post-synaptic population; receivesadd_delta_input.post_local_idx (
jax.Array) – Local indices into the post population targeted by this projection.rule (
ConnRule) – Connection rule.one_to_onetriggers the element-wise path.weight (
ArrayLikeorQuantity) – Synaptic weight in pA (signed: positive excitatory, negative inhibitory).delay (
ArrayLikeorQuantityorNone) – Axonal delay;Nonefor instantaneous delivery.as_current (
bool, defaultFalse) – Deposit mode. WhenFalse(default) the contribution is registered as a delta input (post.add_delta_input), matching how current-based neurons ingest spikes. WhenTrueit is registered as a current input (post.add_current_input) instead — the route the astrocyte slow-inward current (SIC) takes, since SIC is a pA current enteringdV/dtrather than a delta/conductance. Requirescomm='dense'(a graded current cannot ride the binarising sparse event matmul).