CARLsim
3.1.3
CARLsim: a GPU-accelerated SNN simulator
|
a SpikeGenerator that schedules spikes from a vector of spike times More...
#include <spikegen_from_vector.h>
Public Member Functions | |
SpikeGeneratorFromVector (std::vector< int > spkTimes) | |
SpikeGeneratorFromVector constructor. More... | |
~SpikeGeneratorFromVector () | |
PeriodicSpikeGenerator destructor. More... | |
unsigned int | nextSpikeTime (CARLsim *sim, int grpId, int nid, unsigned int currentTime, unsigned int lastScheduledSpikeTime, unsigned int endOfTimeSlice) |
schedules the next spike time More... | |
Public Member Functions inherited from SpikeGenerator | |
virtual | ~SpikeGenerator () |
This class implements a SpikeGenerator that schedules spikes from a vector of spike times (ms).
Definition at line 55 of file spikegen_from_vector.h.
SpikeGeneratorFromVector | ( | std::vector< int > | spkTimes | ) |
[in] | spkTimes | a vector of all spike times |
|
inline |
Definition at line 64 of file spikegen_from_vector.h.
|
virtual |
This function schedules the next spike time, given the currentTime and the lastScheduledSpikeTime. It implements the virtual function of the base class.
[in] | sim | pointer to a CARLsim object |
[in] | grpId | current group ID for which to schedule spikes |
[in] | nid | current neuron ID for which to schedule spikes |
[in] | currentTime | current time (ms) at which spike scheduler is called |
[in] | lastScheduledSpikeTime | the last time (ms) at which a spike was scheduled for this nid, grpId |
[in] | endOfTimeSlice | the end of the time slice (ms) for which to schedule spikes |
Implements SpikeGenerator.