CARLsim
4.1.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
48 #ifndef _SPIKEGEN_FROM_FILE_H_
49 #define _SPIKEGEN_FROM_FILE_H_
146 void loadFile(std::string fileName,
int offsetTimeMs=0);
172 void rewind(
int offsetTimeMs);
188 int nextSpikeTime(
CARLsim* sim,
int grpId,
int nid,
int currentTime,
int lastScheduledSpikeTime,
int endOfTimeSlice);
194 std::string fileName_;
202 std::vector< std::vector<int> > spikes_;
205 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.