smoothed_rate
=0.0) core.Monitor.smoothed_rate(spikes, smooth
Computes the smoothed firing rate of the recorded spiking neurons.
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 = smoothed_rate(smooth=100.) r
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 |