a SpikeGenerator that schedules spikes from a vector of spike times
More...
#include <spikegen_from_vector.h>
This class implements a SpikeGenerator that schedules spikes from a vector of spike times (ms).
- TODO:
- change to vector of AER or 2D vector, so that each neuron can have their own spike times.
Definition at line 67 of file spikegen_from_vector.h.
◆ SpikeGeneratorFromVector()
◆ ~SpikeGeneratorFromVector()
◆ nextSpikeTime()
int nextSpikeTime |
( |
CARLsim * |
sim, |
|
|
int |
grpId, |
|
|
int |
nid, |
|
|
int |
currentTime, |
|
|
int |
lastScheduledSpikeTime, |
|
|
int |
endOfTimeSlice |
|
) |
| |
|
virtual |
This function schedules the next spike time, given the currentTime and the lastScheduledSpikeTime. It implements the virtual function of the base class.
- Parameters
-
[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 |
- Returns
- the next spike time (ms)
Implements SpikeGenerator.
Definition at line 63 of file spikegen_from_vector.cpp.
The documentation for this class was generated from the following files: