CARLsim
6.1.0
CARLsim: a GPU-accelerated SNN simulator
|
#include <spike_monitor_core.h>
Public Member Functions | |
SpikeMonitorCore (SNN *snn, int monitorId, int grpId) | |
constructor (called by CARLsim::setSpikeMonitor) More... | |
~SpikeMonitorCore () | |
destructor, cleans up all the memory upon object deletion More... | |
void | clear () |
deletes data from the 2D spike vector More... | |
long int | getAccumTime () |
returns the total accumulated time More... | |
std::vector< float > | getAllFiringRates () |
returns a list of firing rates for all neurons in the group (sorted by neuron ID ascending) More... | |
std::vector< float > | getAllFiringRatesSorted () |
returns a list of firing rates for all neurons in the group (sorted by firing rate ascending) More... | |
long int | getBufferSize () |
returns the approximate size of the spike vector in bytes More... | |
int | getGrpId () |
returns the group ID More... | |
int | getGrpNumNeurons () |
returns number of neurons in the group More... | |
long int | getLastUpdated () |
returns timestamp of last SpikeMonitor update More... | |
float | getMaxFiringRate () |
returns the largest recorded firing rate More... | |
float | getMinFiringRate () |
returns the smallest recorded firing rate More... | |
SpikeMonMode | getMode () |
returns recording mode More... | |
int | getMonitorId () |
returns the SpikeMonitor ID More... | |
float | getNeuronMeanFiringRate (int neurId) |
returns the recorded mean firing rate for a specific neuron More... | |
int | getNeuronNumSpikes (int neurId) |
returns the number of recorded spikes of a specific neuron More... | |
int | getNumNeuronsWithFiringRate (float min, float max) |
returns number of neurons whose firing rate was in [min,max] during recording More... | |
int | getNumSilentNeurons () |
returns number of neurons that didn't spike while recording More... | |
float | getPercentNeuronsWithFiringRate (float min, float max) |
returns percentage of neurons whose firing rate was in [min,max] during recording More... | |
float | getPercentSilentNeurons () |
returns percentage of neurons that didn't spike during recording More... | |
bool | getPersistentData () |
returns status of PersistentData mode More... | |
float | getPopMeanFiringRate () |
returns the recorded mean firing rate of the group More... | |
int | getPopNumSpikes () |
returns the total number of recorded spikes in the group More... | |
float | getPopStdFiringRate () |
computes the standard deviation of firing rates in the group More... | |
long int | getRecordingLastStartTime () |
returns the timestamp of the last startRecording in ms More... | |
long int | getRecordingStartTime () |
retunrs the timestamp of the first startRecording in ms More... | |
long int | getRecordingStopTime () |
returns the timestamp of stopRecording More... | |
long int | getRecordingTotalTime () |
returns the total recorded time in ms More... | |
FILE * | getSpikeFileId () |
returns a pointer to the spike file More... | |
std::vector< std::vector< int > > | getSpikeVector2D () |
returns the 2D AER vector More... | |
bool | isBufferBig () |
returns true if spike buffer is close to maxAllowedBufferSize More... | |
bool | isRecording () |
returns recording status More... | |
void | print (bool printSpikeTimes) |
prints the AER vector in human-readable format More... | |
void | pushAER (int time, int neurId) |
inserts a (time,neurId) tupel into the 2D spike vector More... | |
void | setLastUpdated (long int lastUpdate) |
sets timestamp of last SpikeMonitor update More... | |
void | setMode (SpikeMonMode mode) |
sets recording mode More... | |
void | setPersistentData (bool persistentData) |
sets status of PersistentData mode More... | |
void | setSpikeFileId (FILE *spikeFileId) |
sets pointer to spike file More... | |
void | startRecording () |
starts recording AER data More... | |
void | stopRecording () |
stops recording AER data More... | |
Definition at line 73 of file spike_monitor_core.h.
SpikeMonitorCore | ( | SNN * | snn, |
int | monitorId, | ||
int | grpId | ||
) |
~SpikeMonitorCore | ( | ) |
Definition at line 98 of file spike_monitor_core.cpp.
void clear | ( | ) |
Definition at line 107 of file spike_monitor_core.cpp.
long int getAccumTime | ( | ) |
std::vector< float > getAllFiringRates | ( | ) |
Definition at line 165 of file spike_monitor_core.cpp.
std::vector< float > getAllFiringRatesSorted | ( | ) |
Definition at line 205 of file spike_monitor_core.cpp.
long int getBufferSize | ( | ) |
|
inline |
Definition at line 91 of file spike_monitor_core.h.
|
inline |
|
inline |
float getMaxFiringRate | ( | ) |
Definition at line 174 of file spike_monitor_core.cpp.
float getMinFiringRate | ( | ) |
Definition at line 182 of file spike_monitor_core.cpp.
|
inline |
|
inline |
float getNeuronMeanFiringRate | ( | int | neurId | ) |
Definition at line 190 of file spike_monitor_core.cpp.
int getNeuronNumSpikes | ( | int | neurId | ) |
Definition at line 197 of file spike_monitor_core.cpp.
int getNumNeuronsWithFiringRate | ( | float | min, |
float | max | ||
) |
Definition at line 214 of file spike_monitor_core.cpp.
int getNumSilentNeurons | ( | ) |
Definition at line 233 of file spike_monitor_core.cpp.
float getPercentNeuronsWithFiringRate | ( | float | min, |
float | max | ||
) |
Definition at line 240 of file spike_monitor_core.cpp.
float getPercentSilentNeurons | ( | ) |
Definition at line 246 of file spike_monitor_core.cpp.
|
inline |
Definition at line 127 of file spike_monitor_core.h.
float getPopMeanFiringRate | ( | ) |
Definition at line 128 of file spike_monitor_core.cpp.
int getPopNumSpikes | ( | ) |
Definition at line 155 of file spike_monitor_core.cpp.
float getPopStdFiringRate | ( | ) |
Definition at line 137 of file spike_monitor_core.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 148 of file spike_monitor_core.h.
|
inline |
|
inline |
Definition at line 181 of file spike_monitor_core.h.
std::vector< std::vector< int > > getSpikeVector2D | ( | ) |
Definition at line 252 of file spike_monitor_core.cpp.
bool isBufferBig | ( | ) |
Definition at line 469 of file spike_monitor_core.cpp.
|
inline |
Definition at line 154 of file spike_monitor_core.h.
void print | ( | bool | printSpikeTimes | ) |
Definition at line 259 of file spike_monitor_core.cpp.
void pushAER | ( | int | time, |
int | neurId | ||
) |
Definition at line 305 of file spike_monitor_core.cpp.
|
inline |
Definition at line 190 of file spike_monitor_core.h.
|
inline |
|
inline |
Definition at line 166 of file spike_monitor_core.h.
void setSpikeFileId | ( | FILE * | spikeFileId | ) |
Definition at line 361 of file spike_monitor_core.cpp.
void startRecording | ( | ) |
Definition at line 312 of file spike_monitor_core.cpp.
void stopRecording | ( | ) |
Definition at line 344 of file spike_monitor_core.cpp.