population_rate
=0.0) core.Monitor.population_rate(spikes, smooth
Takes the recorded spikes of a population and returns a smoothed firing rate for the population of recorded neurons.
This method is faster than calling smoothed_rate
and then averaging.
The first axis is the neuron index, the second is time.
Example:
= ann.Monitor(P[:1000], 'spike')
m 1000.0)
ann.simulate(= m.get('spike')
spikes = population_rate(smooth=100.) r
Parameters
Name | Type | Description | Default |
---|---|---|---|
spikes | dict | the dictionary of spikes returned by get('spike') . |
required |
smooth | float | smoothing time constant. Default: 0.0 (no smoothing). | 0.0 |