#include <algorithm>
#include <fstream>
#include <iterator>
#include <list>
#include <string>
#include <tuple>
#include <vector>
#include <cassert>
#include <cstdint>
Go to the source code of this file.
|
| void | writeBinarySpikeRecording (const std::string &filename, const uint32_t *spkRecord, unsigned int popSize, unsigned int numTimesteps, bool append=false) |
| | Writes spikes recorded using GeNN's spike timing sytem directly to binary file. More...
|
| |
| int | _clz (unsigned int value) |
| |
| void | writeTextSpikeRecording (const std::string &filename, const uint32_t *spkRecord, unsigned int popSize, unsigned int numTimesteps, double dt=1.0, const std::string &delimiter=" ", bool header=false, bool append=false, double startTime=0.0) |
| |
◆ _clz()
| int _clz |
( |
unsigned int |
value | ) |
|
|
inline |
◆ writeBinarySpikeRecording()
| void writeBinarySpikeRecording |
( |
const std::string & |
filename, |
|
|
const uint32_t * |
spkRecord, |
|
|
unsigned int |
popSize, |
|
|
unsigned int |
numTimesteps, |
|
|
bool |
append = false |
|
) |
| |
|
inline |
Writes spikes recorded using GeNN's spike timing sytem directly to binary file.
- Parameters
-
| filename | string containing filename to write to. |
| spkRecord | pointer to spike recording data to write (accessable via recordSpk<neuron group name> or recordSpkEvent<neuron group name>). |
| popSize | number of neurons in population |
| numTimesteps | how many timesteps were recorded (should match the value passed to allocateRecordingBuffers). |
| append | boolean specifying whether to overwrite or append to any existing file called filename. |
◆ writeTextSpikeRecording()
| void writeTextSpikeRecording |
( |
const std::string & |
filename, |
|
|
const uint32_t * |
spkRecord, |
|
|
unsigned int |
popSize, |
|
|
unsigned int |
numTimesteps, |
|
|
double |
dt = 1.0, |
|
|
const std::string & |
delimiter = " ", |
|
|
bool |
header = false, |
|
|
bool |
append = false, |
|
|
double |
startTime = 0.0 |
|
) |
| |
|
inline |
Writes spikes recorded using GeNN's spike timing sytem directly to text file with one column containing spike times in ms and one neuron ids
- Parameters
-
| filename | string containing filename to write to. |
| spkRecord | pointer to spike recording data to write (accessable via recordSpk<neuron group name> or recordSpkEvent<neuron group name>). |
| popSize | number of neurons in population |
| numTimesteps | number of timesteps recorded |
| dt | double precision number specifying size of each timestep |
| delimiter | string specifying character(s) which should appear between columns in text file |
| header | boolean specifying whether to write a header row at start of text file or not |
| append | boolean specifying whether to overwrite or append to any existing file called filename. |
| startTime | double precision number specifying start time of current data. |