CARLsim
4.1.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 63 of file group_monitor_core.h.
GroupMonitorCore | ( | SNN * | snn, |
int | monitorId, | ||
int | grpId | ||
) |
Definition at line 56 of file group_monitor_core.cpp.
~GroupMonitorCore | ( | ) |
Definition at line 88 of file group_monitor_core.cpp.
void clear | ( | ) |
Definition at line 97 of file group_monitor_core.cpp.
std::vector< float > getDataVector | ( | ) |
Definition at line 117 of file group_monitor_core.cpp.
|
inline |
Definition at line 137 of file group_monitor_core.h.
|
inline |
Definition at line 75 of file group_monitor_core.h.
|
inline |
Definition at line 78 of file group_monitor_core.h.
|
inline |
Definition at line 143 of file group_monitor_core.h.
|
inline |
Definition at line 81 of file group_monitor_core.h.
std::vector< int > getPeakTimeVector | ( | ) |
Definition at line 125 of file group_monitor_core.cpp.
std::vector< float > getPeakValueVector | ( | ) |
Definition at line 152 of file group_monitor_core.cpp.
|
inline |
Definition at line 84 of file group_monitor_core.h.
|
inline |
Definition at line 93 of file group_monitor_core.h.
|
inline |
Definition at line 90 of file group_monitor_core.h.
|
inline |
Definition at line 96 of file group_monitor_core.h.
|
inline |
Definition at line 87 of file group_monitor_core.h.
std::vector< int > getSortedPeakTimeVector | ( | ) |
Definition at line 137 of file group_monitor_core.cpp.
std::vector< float > getSortedPeakValueVector | ( | ) |
Definition at line 164 of file group_monitor_core.cpp.
std::vector< int > getTimeVector | ( | ) |
Definition at line 121 of file group_monitor_core.cpp.
|
inline |
Definition at line 99 of file group_monitor_core.h.
void pushData | ( | int | time, |
float | data | ||
) |
Definition at line 110 of file group_monitor_core.cpp.
void setGroupFileId | ( | FILE * | groupFileId | ) |
Definition at line 222 of file group_monitor_core.cpp.
|
inline |
Definition at line 146 of file group_monitor_core.h.
|
inline |
Definition at line 105 of file group_monitor_core.h.
void startRecording | ( | ) |
Definition at line 179 of file group_monitor_core.cpp.
void stopRecording | ( | ) |
Definition at line 206 of file group_monitor_core.cpp.