69 #ifndef INT_MAX // LN2021 g++ 70 #define INT_MAX 2147483647 72 isi_ = std::abs(rate)<0.00001f ?
INT_MAX : int(1000.f/rate);
74 spikeAtZero_ = spikeAtZero;
84 if (std::find(nIdFiredAtZero_.begin(), nIdFiredAtZero_.end(), nid)==nIdFiredAtZero_.end()) {
86 nIdFiredAtZero_.push_back(nid);
92 return lastScheduledSpikeTime+isi_;
95 void PeriodicSpikeGenerator::checkFiringRate() {
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
static void assertTrue(bool statement, errorType errorIfAssertionFails, std::string errorFunc, std::string errorMsgPrefix="", std::string errorMsgSuffix="")
simple wrapper for assert statement
parameter must have positive value
PeriodicSpikeGenerator(float rate, bool spikeAtZero=true)
PeriodicSpikeGenerator constructor.
int nextSpikeTime(CARLsim *sim, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)
schedules the next spike time