CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
50 #ifndef _NEURON_MON_CORE_H_
51 #define _NEURON_MON_CORE_H_
97 void setLastUpdated(
long int lastUpdate) { neuronMonLastUpdated_ = lastUpdate; }
118 bool needToWriteFileHeader_;
126 int neuronFileSignature_;
127 float neuronFileVersion_;
130 std::vector<std::vector<float> > vectorV_;
131 std::vector<std::vector<float> > vectorU_;
132 std::vector<std::vector<float> > vectorI_;
136 long int startTimeLast_;
141 long int neuronMonLastUpdated_;
144 bool persistentData_;
147 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