52 class SpikeMonitorCore;
335 void print(
bool printSpikeTimes=
true);
466 void setLogFile(
const std::string& logFileName);
470 SpikeMonitorCore* spikeMonitorCorePtr_;
float getNeuronMeanFiringRate(int neurId)
returns the mean firing rate of a specific neuron in the group
void startRecording()
Starts a new recording period.
std::vector< float > getAllFiringRates()
Returns the average firing rate of all the neurons in the group as a vector of floats.
int getNumSilentNeurons()
returns the number of neurons that are silent.
float getPopMeanFiringRate()
Returns the mean firing rate of the entire neuronal population.
spikeMonMode_t
SpikeMonitor mode.
float getPercentSilentNeurons()
returns the percentage of total neurons in group that are silent.
int getNeuronNumSpikes(int neurId)
returns the total number of spikes of a specific neuron in the group
float getMinFiringRate()
returns the smallest neuronal mean firing rate in the group
int64_t getRecordingLastStartTime()
Returns the simulation time (ms) of the last call to startRecording()
SpikeMonitor(SpikeMonitorCore *spikeMonitorCorePtr)
SpikeMonitor constructor.
int64_t getRecordingStopTime()
Returns the simulation time (ms) of the last call to stopRecording()
spikeMonMode_t getMode()
Returns the current SpikeMonitor mode.
void stopRecording()
Ends a recording period.
float getPopStdFiringRate()
Returns the standard deviation of firing rates in the entire neuronal population. ...
int getNumNeuronsWithFiringRate(float min, float max)
Returns the number of neurons that fall within this particular min/max range (inclusive).
float getMaxFiringRate()
returns the largest neuronal mean firing rate in the group
void print(bool printSpikeTimes=true)
prints the 2D spike vector.
int getPopNumSpikes()
Returns the total number of spikes in the group.
~SpikeMonitor()
SpikeMonitor destructor.
bool isRecording()
Recording status (true=recording, false=not recording)
mode in which spike information is collected in AER format
int64_t getRecordingTotalTime()
Returns the total recording time (ms)
std::vector< float > getAllFiringRatesSorted()
Returns all the neuronal mean firing rates in ascending order.
float getPercentNeuronsWithFiringRate(float min, float max)
returns the percentage of total neurons in that are in the range specified by the user...
std::vector< std::vector< int > > getSpikeVector2D()
returns the 2D spike vector
void setMode(spikeMonMode_t mode=AER)
Sets the current SpikeMonitor mode.
void setLogFile(const std::string &logFileName)
Sets the name of the spike file binary.
void setPersistentData(bool persistentData)
Sets PersistentMode either on (true) or off (false)
int64_t getRecordingStartTime()
Returns the simulation time (ms) of the first call to startRecording()
void clear()
Truncates the 2D spike vector.
bool getPersistentData()
Returns a flag that indicates whether PersistentMode is on (true) or off (false)