smoothed_rate
core.Monitor.smoothed_rate(spikes, smooth=0.0)Computes the smoothed firing rate of the recorded spiking neurons.
The first axis is the neuron index, the second is time.
Example:
m = ann.Monitor(P[:1000], 'spike')
ann.simulate(1000.0)
spikes = m.get('spike')
r = smoothed_rate(smooth=100.)Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| spikes | dict | the dictionary of spikes returned by get('spike'). If left empty, get('spike') will be called. Beware: this erases the data from memory. |
required |
| smooth | float | smoothing time constant. Default: 0.0 (no smoothing). | 0.0 |