CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
GroupMonitor private core implementation. More...
#include <group_monitor_core.h>
Public Member Functions | |
GroupMonitorCore (SNN *snn, int monitorId, int grpId) | |
constructor (called by CARLsim::setGroupMonitor) More... | |
~GroupMonitorCore () | |
destructor, cleans up all the memory upon object deletion More... | |
void | clear () |
deletes the data vector More... | |
std::vector< float > | getDataVector () |
get the group data More... | |
FILE * | getGroupFileId () |
returns a pointer to the group data file More... | |
int | getGrpId () |
returns the group ID More... | |
int | getGrpNumNeurons () |
returns number of neurons in the group More... | |
int | getLastUpdated () |
returns timestamp of last GroupMonitor update More... | |
int | getMonitorId () |
returns the GroupMonitor ID More... | |
std::vector< int > | getPeakTimeVector () |
get the timestamps for peak values More... | |
std::vector< float > | getPeakValueVector () |
get the peak values of group data More... | |
bool | getPersistentData () |
returns status of PersistentData mode More... | |
int | getRecordingLastStartTime () |
returns the timestamp of the last startRecording in ms More... | |
int | getRecordingStartTime () |
retunrs the timestamp of the first startRecording in ms More... | |
int | getRecordingStopTime () |
returns the timestamp of stopRecording More... | |
int | getRecordingTotalTime () |
returns the total recorded time in ms More... | |
std::vector< int > | getSortedPeakTimeVector () |
get the sorted timestamps for peak values More... | |
std::vector< float > | getSortedPeakValueVector () |
get the sorted peak values of group data More... | |
std::vector< int > | getTimeVector () |
get the timestamps for group data More... | |
bool | isRecording () |
returns recording status More... | |
void | pushData (int time, float data) |
inserts group data (time, value) into the vectors More... | |
void | setGroupFileId (FILE *groupFileId) |
sets pointer to group data file More... | |
void | setLastUpdated (unsigned int lastUpdate) |
sets timestamp of last GroupMonitor update More... | |
void | setPersistentData (bool persistentData) |
sets status of PersistentData mode More... | |
void | startRecording () |
starts recording group data More... | |
void | stopRecording () |
stops recording group data More... | |
Definition at line 64 of file group_monitor_core.h.
GroupMonitorCore | ( | SNN * | snn, |
int | monitorId, | ||
int | grpId | ||
) |
Definition at line 57 of file group_monitor_core.cpp.
~GroupMonitorCore | ( | ) |
Definition at line 89 of file group_monitor_core.cpp.
void clear | ( | ) |
Definition at line 98 of file group_monitor_core.cpp.
std::vector< float > getDataVector | ( | ) |
Definition at line 118 of file group_monitor_core.cpp.
|
inline |
Definition at line 138 of file group_monitor_core.h.
|
inline |
Definition at line 76 of file group_monitor_core.h.
|
inline |
Definition at line 79 of file group_monitor_core.h.
|
inline |
Definition at line 144 of file group_monitor_core.h.
|
inline |
Definition at line 82 of file group_monitor_core.h.
std::vector< int > getPeakTimeVector | ( | ) |
Definition at line 126 of file group_monitor_core.cpp.
std::vector< float > getPeakValueVector | ( | ) |
Definition at line 153 of file group_monitor_core.cpp.
|
inline |
Definition at line 85 of file group_monitor_core.h.
|
inline |
Definition at line 94 of file group_monitor_core.h.
|
inline |
Definition at line 91 of file group_monitor_core.h.
|
inline |
Definition at line 97 of file group_monitor_core.h.
|
inline |
Definition at line 88 of file group_monitor_core.h.
std::vector< int > getSortedPeakTimeVector | ( | ) |
Definition at line 138 of file group_monitor_core.cpp.
std::vector< float > getSortedPeakValueVector | ( | ) |
Definition at line 165 of file group_monitor_core.cpp.
std::vector< int > getTimeVector | ( | ) |
Definition at line 122 of file group_monitor_core.cpp.
|
inline |
Definition at line 100 of file group_monitor_core.h.
void pushData | ( | int | time, |
float | data | ||
) |
Definition at line 111 of file group_monitor_core.cpp.
void setGroupFileId | ( | FILE * | groupFileId | ) |
Definition at line 223 of file group_monitor_core.cpp.
|
inline |
Definition at line 147 of file group_monitor_core.h.
|
inline |
Definition at line 106 of file group_monitor_core.h.
void startRecording | ( | ) |
Definition at line 180 of file group_monitor_core.cpp.
void stopRecording | ( | ) |
Definition at line 207 of file group_monitor_core.cpp.