Download latest PDF - Read the Docs

Transcript
Brian Documentation, Release 1.5dev
nspikes The number of recorded spikes
count An array of spike counts for each neuron
For a SpikeCounter M you can also write M[i] for the number of spikes counted for neuron i.
class brian.PopulationSpikeCounter(source, delay=0)
Counts spikes from a NeuronGroup
Initialised as:
PopulationSpikeCounter(source)
With argument:
source A NeuronGroup to record from
Has one attribute:
nspikes The number of recorded spikes
class brian.StateSpikeMonitor(source, var)
Counts or records spikes and state variables at spike times from a NeuronGroup
Initialised as:
StateSpikeMonitor(source, var)
Where:
source A NeuronGroup to record from
var The variable name or number to record from, or a tuple of variable names or numbers if you want to record
multiple variables for each spike.
Has two attributes:
nspikes
The number of recorded spikes
spikes
A time ordered list of tuples (i,t,v) where neuron i fired at time t and the specified variable had value
v. If you specify multiple variables, each tuple will be of the form (i,t,v0,v1,v2,...) where the
vi are the values corresponding in order to the variables you specified in the var keyword.
And two methods:
times(i=None)
Returns an array of the spike times for the whole monitored group, or just for neuron i if specified.
values(var, i=None)
Returns an array of the values of variable var for the whole monitored group, or just for neuron i if
specified.
class brian.StateMonitor(P, varname, clock=None, record=False, timestep=1, when=’end’)
Records the values of a state variable from a NeuronGroup.
Initialise as:
StateMonitor(P,varname(,record=False)
(,when='end)(,timestep=1)(,clock=clock))
Where:
P The group to be recorded from
8.11. Monitors
291