#include <amygdala/statisticsoutput.h>
Inheritance diagram for StatisticsOutput:
Public Methods | |
StatisticsOutput () | |
virtual | ~StatisticsOutput () |
virtual void | OutputEvent (AmIdInt neuronId, AmTimeInt eventTime) |
virtual void | OutputCache () |
void | SetStepSize (AmTimeInt step) |
AmTimeInt | GetStepSize () const |
void | ClearHistory () |
vector< unsigned int > & | Histogram () |
vector< unsigned int > & | Histogram (AmIdInt neuronId) |
vector< unsigned int > | Histogram (AmTimeInt start, AmTimeInt end) |
vector< unsigned int > | Histogram (AmIdInt neuronId, AmTimeInt start, AmTimeInt end) |
float | PeakSpikeRate () |
float | PeakSpikeRate (AmIdInt neuronId) |
AmTimeInt | PeakRateTime () |
AmTimeInt | PeakRateTime (AmIdInt neuronId) |
AmIdInt | PeakNeuron () |
AmIdInt | MostActiveNeuron () |
unsigned int | TotalOutputSpikes () |
unsigned int | TotalOutputSpikes (AmIdInt neuronId) |
float | MeanSpikeRate () |
float | MeanSpikeRate (AmIdInt neuronId) |
void | LogSpikeTimes (string filename, AmTimeInt start=0, AmTimeInt end=~0) |
void | AddTrace (AmIdInt nId) |
void | CloseLog () |
Protected Methods | |
void | Log (AmIdInt neuronId, AmTimeInt eventTime) |
Protected Attributes | |
hash_map< AmIdInt, vector< AmTimeInt > > | outputHistory |
hash_map< AmIdInt, vector< unsigned int > > | histogram |
vector< unsigned int > | combinedHistogram |
AmIdInt | maxPeakId |
AmTimeInt | maxPeakTime |
AmIdInt | mostActiveId |
unsigned int | mostActiveCount |
float | combinedPeakRate |
AmTimeInt | combinedPeakTime |
float | meanRate |
unsigned int | totalSpikeCount |
AmTimeInt | stepSize |
AmTimeInt | beginTime |
AmTimeInt | calcTime |
AmTimeInt | lastCalcTime |
set< AmIdInt > | traceNeurons |
bool | logging |
AmTimeInt | logStart |
AmTimeInt | logEnd |
FILE * | logFd |
|
Select a neuron for logging. This function must be called repeatedly to select multiple neurons. Calling this function the first time results in turning off logging for all other neurons |
|
Clear out the raw data. This may be done if the simulation is run for a period of time and then resumed after doing some analysis of the results. ClearHistory() can be called before resuming if the old data is not wanted for the next round of analysis. |
|
Close a the file descriptor if open |
|
Get the time step size. (ms) |
|
Generate a histogram detailing the activity of neuronId between start and end times. Times are measured in ms. |
|
Generate a histogram detailing the combined output activity for all output neurons between start and end times. Times are measured in ms. |
|
Generate a histogram detailing the activity of neuronId during the life of the simulation. |
|
Generate a histogram detailing the combined output activity for all output neurons during the life of the simulation. |
|
write logging info to the log file |
|
Turn on logging
|
|
Find the mean spike rate for neuron neuronId. (spikes/sec) |
|
Find the mean spike rate for all output neurons. (spikes/sec) |
|
Find the neuron with the highest number of output spikes overall. |
|
If output is turned on in caching mode, this function will be called every time the cache is emptied. Arguments TBD. Implements SpikeOutput. |
|
Raise an output event. If output is turned on in streaming mode, this function will be called every time an output neuron spikes. Implements SpikeOutput. |
|
Find the neuron with the highest peak spike rate. |
|
Find the time of the peak spike rate for neuronId. (ms) |
|
Find the time of the peak spike rate for the combined output of all output neurons. (ms) |
|
Find the peak spike rate for neuronId. (spikes/sec) |
|
Find the peak spike rate for the combined output of all output neurons. (spikes/sec) |
|
Set the time step size (ms) to be used for calculating spike rates. This also determines the width of the elements for the histograms. |
|
Find the total number of spikes for neuron neuronId. |
|
Find the total number of spikes for all output neurons. |
|
Time that statistics collection began (can be reset) |
|
Time of last reported output spike (us) |
|
The histograms can be filled either during the simulation inside OutputEvent() or later on from the contents of outputHistory. |
|
Time that last calculation was done (us) |
|
histogram step size (ms) |
|
The set of neurons that get traced. If empty all neurons get traced |