AnimatLab  2
Test
SpikeMonitor Class Reference

can be used to create a custom spike monitor More...

#include <snn.h>

+ Inheritance diagram for SpikeMonitor:
+ Collaboration diagram for SpikeMonitor:

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...
 

Detailed Description

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.

Definition at line 265 of file snn.h.

Member Function Documentation

virtual void SpikeMonitor::update ( CpuSNN s,
int  grpId,
unsigned int *  Nids,
unsigned int *  timeCnts,
unsigned int  total_spikes,
float  firing_Rate 
)
inlinevirtual

Controls actions that are performed when certain neurons fire (user-defined).

Attention
The virtual method should never be called directly

Reimplemented in WriteSpikeToFile, and AnimatCarlSim::CsNeuronGroup.

Definition at line 271 of file snn.h.


The documentation for this class was generated from the following file: