CARLsim
4.1.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
49 #ifndef _NEURON_MON_CORE_H_
50 #define _NEURON_MON_CORE_H_
96 void setLastUpdated(
long int lastUpdate) { neuronMonLastUpdated_ = lastUpdate; }
117 bool needToWriteFileHeader_;
125 int neuronFileSignature_;
126 float neuronFileVersion_;
129 std::vector<std::vector<float> > vectorV_;
130 std::vector<std::vector<float> > vectorU_;
131 std::vector<std::vector<float> > vectorI_;
135 long int startTimeLast_;
140 long int neuronMonLastUpdated_;
143 bool persistentData_;
146 bool userHasBeenWarned_;
~NeuronMonitorCore()
destructor, cleans up all the memory upon object deletion
NeuronMonitorCore(SNN *snn, int monitorId, int grpId)
constructor (called by CARLsim::setNeuronMonitor)
void writeNeuronFileHeader()
long int getLastUpdated()
returns timestamp of last NeuronMonitor update
void pushNeuronState(int neurId, float V, float U, float I)
inserts a (time,neurId) tupel into the D Neuron State vector
void stopRecording()
stops recording Neuron state
bool isRecording()
returns recording status
long int getBufferSize()
returns the approximate size of the state vectors in bytes
std::vector< std::vector< float > > getVectorV()
returns the Neuron state vector
void setNeuronFileId(FILE *neuronFileId)
sets pointer to Neuron file
void print()
prints neuron states in human-readable format
bool isBufferBig()
returns true if state buffers are close to maxAllowedBufferSize
void setLastUpdated(long int lastUpdate)
sets timestamp of last NeuronMonitor update
std::vector< std::vector< float > > getVectorU()
std::vector< std::vector< float > > getVectorI()
Contains all of CARLsim's core functionality.
long int getAccumTime()
returns the total accumulated time
FILE * getNeuronFileId()
returns a pointer to the neuron state file
void clear()
deletes data from the neuron state vector
void startRecording()
starts recording Neuron state