53 numNeurons = numNeurons_;
55 quota =
new int[numNeurons_];
56 for (
unsigned int i = 0; i < numNeurons_; i++) quota[i] = 0;
64 if ((
unsigned int) nid < numNeurons && quota[nid] > 0) {
66 if (lastScheduledSpikeTime + isi < (
unsigned int)currentTime) {
67 return currentTime + isi;
69 return lastScheduledSpikeTime + isi;
77 if ((
unsigned int)nid_ < numNeurons)
82 for (
unsigned int i = 0; i < numNeurons; i++)
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_)
int nextSpikeTime(CARLsim *s, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)
controls spike generation using a callback mechanism
void setQuota(int nid_, int quota_)
~InteractiveSpikeGenerator()