44 numNeurons = numNeurons_;
46 quota =
new int[numNeurons_];
47 for (
int i = 0; i < numNeurons_; i++) quota[i] = 0;
55 unsigned int lastScheduledSpikeTime,
unsigned int endOfTimeSlice) {
56 if (nid < numNeurons && quota[nid] > 0) {
58 if (lastScheduledSpikeTime + isi < currentTime) {
59 return currentTime + isi;
61 return lastScheduledSpikeTime + isi;
69 if (nid_ < numNeurons)
74 for (
int i = 0; i < numNeurons; i++)
unsigned int nextSpikeTime(CARLsim *s, int grpId, int nid, unsigned int currentTime, unsigned int lastScheduledSpikeTime, unsigned int endOfTimeSlice)
controls spike generation using a callback mechanism
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
void setQuotaAll(int quota_)
InteractiveSpikeGenerator(unsigned int numNeurons_, unsigned int isi_)
void setQuota(int nid_, int quota_)
~InteractiveSpikeGenerator()