CARLsim
5.0.0
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... | |
int | nextSpikeTime (CARLsim *sim, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, 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 63 of file spikegen_from_vector.h.
SpikeGeneratorFromVector | ( | std::vector< int > | spkTimes | ) |
[in] | spkTimes | a vector of all spike times |
Definition at line 54 of file spikegen_from_vector.cpp.
|
inline |
Definition at line 72 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 |
Implements SpikeGenerator.
Definition at line 62 of file spikegen_from_vector.cpp.