CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
49 #ifndef _SPIKEGEN_FROM_FILE_H_
50 #define _SPIKEGEN_FROM_FILE_H_
147 void loadFile(std::string fileName,
int offsetTimeMs=0);
173 void rewind(
int offsetTimeMs);
189 int nextSpikeTime(
CARLsim* sim,
int grpId,
int nid,
int currentTime,
int lastScheduledSpikeTime,
int endOfTimeSlice);
195 std::string fileName_;
203 std::vector< std::vector<int> > spikes_;
206 std::vector< std::vector<int>::iterator > spikesIt_;
~SpikeGeneratorFromFile()
SpikeGeneratorFromFile destructor.
int nextSpikeTime(CARLsim *sim, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)
schedules the next spike time
a SpikeGeneratorFromFile schedules spikes from a spike file binary
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
void rewind(int offsetTimeMs)
Rewinds the spike file to beginning of file.
void loadFile(std::string fileName, int offsetTimeMs=0)
Loads a new spike file.
SpikeGeneratorFromFile(std::string fileName, int offsetTimeMs=0)
SpikeGeneratorFromFile constructor.