histogram
core.Monitor.histogram(
spikes,=None,
bins=False,
per_neuron=None,
recording_window )
Returns a histogram for the recorded spikes in the population.
Example:
= ann.Monitor(P[:1000], 'spike')
m 1000.0)
ann.simulate(= m.get('spike')
spikes = histogram(spikes)
histo plt.plot(histo)
Parameters
Name | Type | Description | Default |
---|---|---|---|
spikes | dict | the dictionary of spikes returned by get('spike') . |
required |
bins | float | the bin size in ms (default: dt). | None |