AnimatLab
2
Test
|
can be used to create a custom spike monitor More...
#include <snn.h>
Public Member Functions | |
virtual void | update (CpuSNN *s, int grpId, unsigned int *Nids, unsigned int *timeCnts, unsigned int total_spikes, float firing_Rate) |
Controls actions that are performed when certain neurons fire (user-defined). More... | |
can be used to create a custom spike monitor
To retrieve outputs, a spike-monitoring callback mechanism is used. This mechanism allows the user to calculate basic statistics, store spike trains, or perform more complicated output monitoring. Spike monitors are registered for a group and are called automatically by the simulator every second. Similar to an address event representation (AER), the spike monitor indicates which neurons spiked by using the neuron ID within a group (0-indexed) and the time of the spike. Only one spike monitor is allowed per group.
|
inlinevirtual |
Controls actions that are performed when certain neurons fire (user-defined).
Reimplemented in WriteSpikeToFile, and AnimatCarlSim::CsNeuronGroup.