CARLsim  3.1.3
CARLsim: a GPU-accelerated SNN simulator
periodic_spikegen.h
Go to the documentation of this file.
1 #ifndef _PERIODIC_SPIKEGEN_H_
2 #define _PERIODIC_SPIKEGEN_H_
3 
4 #include <callback.h>
5 #include <vector>
6 
7 class CARLsim;
8 
9 
22 public:
28  PeriodicSpikeGenerator(bool spikeAtZero=true);
29 
32 
40  void setRates(float rateHz);
41 
50  void setRates(std::vector<float> ratesHz);
51 
65  unsigned int nextSpikeTime(CARLsim* sim, int grpId, int nid, unsigned int currentTime,
66  unsigned int lastScheduledSpikeTime, unsigned int endOfTimeSlice);
67 
68 private:
69  // This class provides a pImpl.
70  // \see https://marcmutz.wordpress.com/translated-articles/pimp-my-pimpl/
71  class Impl;
72  Impl* _impl;
73 };
74 
75 #endif
void setRates(float rateHz)
Sets the spike rate of all neurons in the group.
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
Definition: carlsim.h:141
PeriodicSpikeGenerator(bool spikeAtZero=true)
PeriodicSpikeGenerator constructor.
unsigned int nextSpikeTime(CARLsim *sim, int grpId, int nid, unsigned int currentTime, unsigned int lastScheduledSpikeTime, unsigned int endOfTimeSlice)
schedules the next spike time
~PeriodicSpikeGenerator()
default destructor
a periodic SpikeGenerator (constant ISI) creating spikes at a certain rate