CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
50 #ifndef _GROUP_MON_CORE_H_
51 #define _GROUP_MON_CORE_H_
103 void pushData(
int time,
float data);
147 void setLastUpdated(
unsigned int lastUpdate) { grpMonLastUpdated_ = lastUpdate; }
154 void writeGroupFileHeader();
157 bool needToWriteFileHeader_;
165 int groupFileSignature_;
166 float groupFileVersion_;
169 std::vector<int> timeVector_;
170 std::vector<float> dataVector_;
179 int grpMonLastUpdated_;
182 bool persistentData_;
void setLastUpdated(unsigned int lastUpdate)
sets timestamp of last GroupMonitor update
int getMonitorId()
returns the GroupMonitor ID
void startRecording()
starts recording group data
std::vector< int > getPeakTimeVector()
get the timestamps for peak values
bool getPersistentData()
returns status of PersistentData mode
void clear()
deletes the data vector
std::vector< float > getSortedPeakValueVector()
get the sorted peak values of group data
std::vector< float > getDataVector()
get the group data
int getRecordingStartTime()
retunrs the timestamp of the first startRecording in ms
int getGrpNumNeurons()
returns number of neurons in the group
GroupMonitor private core implementation.
void stopRecording()
stops recording group data
~GroupMonitorCore()
destructor, cleans up all the memory upon object deletion
FILE * getGroupFileId()
returns a pointer to the group data file
bool isRecording()
returns recording status
int getRecordingLastStartTime()
returns the timestamp of the last startRecording in ms
std::vector< int > getSortedPeakTimeVector()
get the sorted timestamps for peak values
int getGrpId()
returns the group ID
int getRecordingTotalTime()
returns the total recorded time in ms
GroupMonitorCore(SNN *snn, int monitorId, int grpId)
constructor (called by CARLsim::setGroupMonitor)
void setGroupFileId(FILE *groupFileId)
sets pointer to group data file
Contains all of CARLsim's core functionality.
void setPersistentData(bool persistentData)
sets status of PersistentData mode
std::vector< int > getTimeVector()
get the timestamps for group data
std::vector< float > getPeakValueVector()
get the peak values of group data
int getLastUpdated()
returns timestamp of last GroupMonitor update
int getRecordingStopTime()
returns the timestamp of stopRecording
void pushData(int time, float data)
inserts group data (time, value) into the vectors