CARLsim  5.0.0
CARLsim: a GPU-accelerated SNN simulator
SpikeMonitorCore Class Reference

#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...
 

Detailed Description

Definition at line 71 of file spike_monitor_core.h.

Constructor & Destructor Documentation

◆ SpikeMonitorCore()

SpikeMonitorCore ( SNN snn,
int  monitorId,
int  grpId 
)

Definition at line 59 of file spike_monitor_core.cpp.

◆ ~SpikeMonitorCore()

Definition at line 97 of file spike_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 106 of file spike_monitor_core.cpp.

◆ getAccumTime()

long int getAccumTime ( )

Definition at line 484 of file spike_monitor_core.cpp.

◆ getAllFiringRates()

std::vector< float > getAllFiringRates ( )

Definition at line 164 of file spike_monitor_core.cpp.

◆ getAllFiringRatesSorted()

std::vector< float > getAllFiringRatesSorted ( )

Definition at line 204 of file spike_monitor_core.cpp.

◆ getBufferSize()

long int getBufferSize ( )

Definition at line 458 of file spike_monitor_core.cpp.

◆ getGrpId()

int getGrpId ( )
inline

Definition at line 89 of file spike_monitor_core.h.

◆ getGrpNumNeurons()

int getGrpNumNeurons ( )
inline

Definition at line 92 of file spike_monitor_core.h.

◆ getLastUpdated()

long int getLastUpdated ( )
inline

Definition at line 185 of file spike_monitor_core.h.

◆ getMaxFiringRate()

float getMaxFiringRate ( )

Definition at line 173 of file spike_monitor_core.cpp.

◆ getMinFiringRate()

float getMinFiringRate ( )

Definition at line 181 of file spike_monitor_core.cpp.

◆ getMode()

SpikeMonMode getMode ( )
inline

Definition at line 101 of file spike_monitor_core.h.

◆ getMonitorId()

int getMonitorId ( )
inline

Definition at line 104 of file spike_monitor_core.h.

◆ getNeuronMeanFiringRate()

float getNeuronMeanFiringRate ( int  neurId)

Definition at line 189 of file spike_monitor_core.cpp.

◆ getNeuronNumSpikes()

int getNeuronNumSpikes ( int  neurId)

Definition at line 196 of file spike_monitor_core.cpp.

◆ getNumNeuronsWithFiringRate()

int getNumNeuronsWithFiringRate ( float  min,
float  max 
)

Definition at line 213 of file spike_monitor_core.cpp.

◆ getNumSilentNeurons()

int getNumSilentNeurons ( )

Definition at line 232 of file spike_monitor_core.cpp.

◆ getPercentNeuronsWithFiringRate()

float getPercentNeuronsWithFiringRate ( float  min,
float  max 
)

Definition at line 239 of file spike_monitor_core.cpp.

◆ getPercentSilentNeurons()

float getPercentSilentNeurons ( )

Definition at line 245 of file spike_monitor_core.cpp.

◆ getPersistentData()

bool getPersistentData ( )
inline

Definition at line 125 of file spike_monitor_core.h.

◆ getPopMeanFiringRate()

float getPopMeanFiringRate ( )

Definition at line 127 of file spike_monitor_core.cpp.

◆ getPopNumSpikes()

int getPopNumSpikes ( )

Definition at line 154 of file spike_monitor_core.cpp.

◆ getPopStdFiringRate()

float getPopStdFiringRate ( )

Definition at line 136 of file spike_monitor_core.cpp.

◆ getRecordingLastStartTime()

long int getRecordingLastStartTime ( )
inline

Definition at line 143 of file spike_monitor_core.h.

◆ getRecordingStartTime()

long int getRecordingStartTime ( )
inline

Definition at line 140 of file spike_monitor_core.h.

◆ getRecordingStopTime()

long int getRecordingStopTime ( )
inline

Definition at line 146 of file spike_monitor_core.h.

◆ getRecordingTotalTime()

long int getRecordingTotalTime ( )
inline

Definition at line 137 of file spike_monitor_core.h.

◆ getSpikeFileId()

FILE* getSpikeFileId ( )
inline

Definition at line 179 of file spike_monitor_core.h.

◆ getSpikeVector2D()

std::vector< std::vector< int > > getSpikeVector2D ( )

Definition at line 251 of file spike_monitor_core.cpp.

◆ isBufferBig()

bool isBufferBig ( )

Definition at line 468 of file spike_monitor_core.cpp.

◆ isRecording()

bool isRecording ( )
inline

Definition at line 152 of file spike_monitor_core.h.

◆ print()

void print ( bool  printSpikeTimes)

Definition at line 258 of file spike_monitor_core.cpp.

◆ pushAER()

void pushAER ( int  time,
int  neurId 
)

Definition at line 304 of file spike_monitor_core.cpp.

◆ setLastUpdated()

void setLastUpdated ( long int  lastUpdate)
inline

Definition at line 188 of file spike_monitor_core.h.

◆ setMode()

void setMode ( SpikeMonMode  mode)
inline

Definition at line 161 of file spike_monitor_core.h.

◆ setPersistentData()

void setPersistentData ( bool  persistentData)
inline

Definition at line 164 of file spike_monitor_core.h.

◆ setSpikeFileId()

void setSpikeFileId ( FILE *  spikeFileId)

Definition at line 360 of file spike_monitor_core.cpp.

◆ startRecording()

void startRecording ( )

Definition at line 311 of file spike_monitor_core.cpp.

◆ stopRecording()

void stopRecording ( )

Definition at line 343 of file spike_monitor_core.cpp.


The documentation for this class was generated from the following files: