CARLsim
4.1.0
CARLsim: a GPU-accelerated SNN simulator
|
#include <callback.h>
Public Member Functions | |
virtual | ~SpikeGenerator () |
virtual int | nextSpikeTime (CARLsim *s, int grpId, int i, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)=0 |
controls spike generation using a callback mechanism More... | |
Spike generation can be performed using spike generators. Spike generators are dummy-neurons that have their spikes specified externally either defined by a Poisson firing rate or via a spike injection mechanism. Spike generators can have post-synaptic connections with STDP and STP, but unlike Izhikevich neurons, they do not receive any pre-synaptic input. For more information on spike generators see Section Neuron groups: Spike generators in the Tutorial.
For fine-grained control over spike generation, individual spike times can be specified per neuron in each group. This is accomplished using a callback mechanism, which is called at each time step, to specify whether a neuron has fired or not.
Definition at line 63 of file callback.h.
|
inlinevirtual |
Definition at line 66 of file callback.h.
|
pure virtual |
s | pointer to the simulator object |
grpId | the group id |
i | the neuron index in the group |
currentTime | the current simluation time |
lastScheduledSpikeTime | the last spike time which was scheduled |
endOfTimeSlice | the end of the current scheduling time slice. Spike times after this will not be scheduled. |
Implemented in SpikeGeneratorFromFile, PeriodicSpikeGenerator, SpikeGeneratorFromVector, InteractiveSpikeGenerator, and PrePostGroupSpikeGenerator.