Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
Monitor class to record neural firing rates. More...
#include <RateMonitor.h>
Public Member Functions | |
RateMonitor (SpikingGroup *source, string filename, AurynFloat samplinginterval=1) | |
virtual | ~RateMonitor () |
void | execute () |
Protected Member Functions | |
void | init (SpikingGroup *source, string filename, AurynFloat samplinginterval) |
Protected Member Functions inherited from auryn::Monitor | |
virtual void | open_output_file (std::string filename) |
virtual void | virtual_serialize (boost::archive::binary_oarchive &ar, const unsigned int version) |
virtual void | virtual_serialize (boost::archive::binary_iarchive &ar, const unsigned int version) |
virtual void | flush () |
Flush to file. More... | |
Monitor (std::string filename, std::string default_extension="dat") | |
Standard constructor with file name. More... | |
Monitor () | |
Constructor which does not open a text file for output. More... | |
std::string | generate_filename (std::string name_hint="") |
Generates a default filename from the device ID. More... | |
virtual | ~Monitor () |
Standard destructor. More... | |
Protected Member Functions inherited from auryn::Device | |
void | init () |
Standard initializer to be called by the constructor. More... | |
Device () | |
Standard constructor. More... | |
void | set_name (std::string s) |
Set device name. More... | |
std::string | get_name () |
Get device name. More... | |
int | get_id () |
Get numeric device id. More... | |
virtual | ~Device () |
Standard destructor. More... | |
virtual void | evolve () |
Protected Attributes | |
SpikingGroup * | src |
Protected Attributes inherited from auryn::Monitor | |
std::ofstream | outfile |
std::string | fname |
std::string | default_file_extension |
bool | active |
Standard active switch. More... | |
Protected Attributes inherited from auryn::Device | |
std::string | device_name |
Identifying name for device. More... | |
bool | active |
Standard active switch. More... | |
Monitor class to record neural firing rates.
Instances of this class record the firing rates of all neurons in the src SpikingGroup. To estimate rates online it uses an exponential filter with a time constant that is three times the sampling interval. To do so the class uses a synaptic trace. Each rank only records spikes from local neurons.
RateMonitor::RateMonitor | ( | SpikingGroup * | source, |
std::string | filename, | ||
AurynFloat | samplinginterval = 1 |
||
) |
Default Constructor
|
virtual |
Implementation of necessary execute() function.
Reimplemented from auryn::Device.
|
protected |
Default init method
|
protected |
The source SpikingGroup