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

#include <neuron_monitor_core.h>

Public Member Functions

 NeuronMonitorCore (SNN *snn, int monitorId, int grpId)
 constructor (called by CARLsim::setNeuronMonitor) More...
 
 ~NeuronMonitorCore ()
 destructor, cleans up all the memory upon object deletion More...
 
void clear ()
 deletes data from the neuron state vector More...
 
long int getAccumTime ()
 returns the total accumulated time More...
 
long int getBufferSize ()
 returns the approximate size of the state vectors in bytes More...
 
long int getLastUpdated ()
 returns timestamp of last NeuronMonitor update More...
 
FILE * getNeuronFileId ()
 returns a pointer to the neuron state file More...
 
std::vector< std::vector< float > > getVectorI ()
 
std::vector< std::vector< float > > getVectorU ()
 
std::vector< std::vector< float > > getVectorV ()
 returns the Neuron state vector More...
 
bool isBufferBig ()
 returns true if state buffers are close to maxAllowedBufferSize More...
 
bool isRecording ()
 returns recording status More...
 
void print ()
 prints neuron states in human-readable format More...
 
void pushNeuronState (int neurId, float V, float U, float I)
 inserts a (time,neurId) tupel into the D Neuron State vector More...
 
void setLastUpdated (long int lastUpdate)
 sets timestamp of last NeuronMonitor update More...
 
void setNeuronFileId (FILE *neuronFileId)
 sets pointer to Neuron file More...
 
void startRecording ()
 starts recording Neuron state More...
 
void stopRecording ()
 stops recording Neuron state More...
 
void writeNeuronFileHeader ()
 

Detailed Description

Definition at line 59 of file neuron_monitor_core.h.

Constructor & Destructor Documentation

◆ NeuronMonitorCore()

NeuronMonitorCore ( SNN snn,
int  monitorId,
int  grpId 
)

Definition at line 57 of file neuron_monitor_core.cpp.

◆ ~NeuronMonitorCore()

Definition at line 94 of file neuron_monitor_core.cpp.

Member Function Documentation

◆ clear()

void clear ( )

Definition at line 101 of file neuron_monitor_core.cpp.

◆ getAccumTime()

long int getAccumTime ( )

Definition at line 174 of file neuron_monitor_core.cpp.

◆ getBufferSize()

long int getBufferSize ( )

Definition at line 230 of file neuron_monitor_core.cpp.

◆ getLastUpdated()

long int getLastUpdated ( )
inline

Definition at line 94 of file neuron_monitor_core.h.

◆ getNeuronFileId()

FILE* getNeuronFileId ( )
inline

Definition at line 91 of file neuron_monitor_core.h.

◆ getVectorI()

std::vector< std::vector< float > > getVectorI ( )

Definition at line 265 of file neuron_monitor_core.cpp.

◆ getVectorU()

std::vector< std::vector< float > > getVectorU ( )

Definition at line 260 of file neuron_monitor_core.cpp.

◆ getVectorV()

std::vector< std::vector< float > > getVectorV ( )

Definition at line 255 of file neuron_monitor_core.cpp.

◆ isBufferBig()

bool isBufferBig ( )

Definition at line 240 of file neuron_monitor_core.cpp.

◆ isRecording()

bool isRecording ( )
inline

Definition at line 73 of file neuron_monitor_core.h.

◆ print()

void print ( )

Definition at line 270 of file neuron_monitor_core.cpp.

◆ pushNeuronState()

void pushNeuronState ( int  neurId,
float  V,
float  U,
float  I 
)

Definition at line 118 of file neuron_monitor_core.cpp.

◆ setLastUpdated()

void setLastUpdated ( long int  lastUpdate)
inline

Definition at line 97 of file neuron_monitor_core.h.

◆ setNeuronFileId()

void setNeuronFileId ( FILE *  neuronFileId)

Definition at line 178 of file neuron_monitor_core.cpp.

◆ startRecording()

void startRecording ( )

Definition at line 126 of file neuron_monitor_core.cpp.

◆ stopRecording()

void stopRecording ( )

Definition at line 156 of file neuron_monitor_core.cpp.

◆ writeNeuronFileHeader()

void writeNeuronFileHeader ( )

Definition at line 200 of file neuron_monitor_core.cpp.


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