Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
The standard Monitor object to record spikes from a SpikingGroup and write them to a text file. More...
#include <SpikeMonitor.h>
Public Member Functions | |
SpikeMonitor (SpikingGroup *source, std::string filename) | |
Default constructor. More... | |
SpikeMonitor (SpikingGroup *source, std::string filename, NeuronID to) | |
Default constructor which records from limited number of neurons. More... | |
SpikeMonitor (SpikingGroup *source, std::string filename, NeuronID from, NeuronID to) | |
Default constructor which records from a range of neurons. More... | |
void | set_every (NeuronID every) |
Sets every parameter that ellow to record only from every X neuron. More... | |
virtual | ~SpikeMonitor () |
Default destructor. More... | |
void | execute () |
Propagate function for internal use. More... | |
Public Member Functions inherited from auryn::Monitor | |
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... | |
Public Member Functions inherited from auryn::Device | |
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 () |
Public Attributes | |
bool | active |
Public Attributes inherited from auryn::Monitor | |
bool | active |
Standard active switch. More... | |
Public Attributes inherited from auryn::Device | |
bool | active |
Standard active switch. More... | |
Additional Inherited Members | |
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) |
Protected Member Functions inherited from auryn::Device | |
void | init () |
Standard initializer to be called by the constructor. More... | |
Protected Attributes inherited from auryn::Monitor | |
std::ofstream | outfile |
std::string | fname |
std::string | default_file_extension |
Protected Attributes inherited from auryn::Device | |
std::string | device_name |
Identifying name for device. More... | |
The standard Monitor object to record spikes from a SpikingGroup and write them to a text file.
SpikeMonitor is specified with a source group of type SpikingGroup and writes all or a specified range of the neurons spikes to a text (ras) file that has to be given at construction time.
SpikeMonitor writes spikes into rank specific files and timestamps them before the axonal delay (this is generally what you want). DelaySpikeMonitor in contrast writes spikes after the axonal delay and records all spikes from all ranks and all all ranks (this is maninly for debugging).
SpikeMonitor::SpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename | ||
) |
Default constructor.
source | Specifies the source SpikingGroup to record from |
filename | Specifies the filename to write to. This filename needs to be rank specific to avoid problems in parallelm mode |
SpikeMonitor::SpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename, | ||
NeuronID | to | ||
) |
Default constructor which records from limited number of neurons.
source | Specifies the source SpikingGroup to record from |
filename | Specifies the filename to write to. This filename needs to be rank specific to avoid problems in parallelm mode |
to | The last NeuronID to record from starting from 0. |
SpikeMonitor::SpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename, | ||
NeuronID | from, | ||
NeuronID | to | ||
) |
Default constructor which records from a range of neurons.
source | Specifies the source SpikingGroup to record from |
filename | Specifies the filename to write to. This filename needs to be rank specific to avoid problems in parallelm mode |
from | The first NeuronID to record from. |
to | The last NeuronID to record from. |
|
virtual |
|
virtual |
Propagate function for internal use.
Reimplemented from auryn::Device.
void SpikeMonitor::set_every | ( | NeuronID | every | ) |
bool auryn::SpikeMonitor::active |
Switch variable to enable/disable recording.