PoissonInput class

(Shortest import: from brian2 import PoissonInput)

class brian2.input.poissoninput.PoissonInput(target, target_var, N, rate, weight, when='synapses', order=0)[source]

Bases: CodeRunner

Adds independent Poisson input to a target variable of a Group. For large numbers of inputs, this is much more efficient than creating a PoissonGroup. The synaptic events are generated randomly during the simulation and are not preloaded and stored in memory. All the inputs must target the same variable, have the same frequency and same synaptic weight. All neurons in the target Group receive independent realizations of Poisson spike trains.

Attributes

N

The number of inputs

rate

The rate of each input

target_var

The targetted variable

weight

The synaptic weight

Methods

before_run(run_namespace)

Optional method to prepare the object before a run.

Details

N

The number of inputs

rate

The rate of each input

target_var

The targetted variable

weight

The synaptic weight

before_run(run_namespace)[source]

Optional method to prepare the object before a run.

Called by Network.after_run before the main simulation loop starts.