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 binary file. More...
#include <BinarySpikeMonitor.h>
Public Member Functions | |
BinarySpikeMonitor (SpikingGroup *source, std::string filename="") | |
BinarySpikeMonitor (SpikingGroup *source, std::string filename, NeuronID to) | |
BinarySpikeMonitor (SpikingGroup *source, std::string filename, NeuronID from, NeuronID to) | |
void | set_offset (NeuronID of) |
void | set_every (NeuronID every) |
virtual | ~BinarySpikeMonitor () |
virtual void | execute () |
virtual void | flush () |
Flush to file. More... | |
Public Member Functions inherited from auryn::Monitor | |
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 () |
Additional Inherited Members | |
Public Attributes inherited from auryn::Monitor | |
bool | active |
Standard active switch. More... | |
Public Attributes inherited from auryn::Device | |
bool | active |
Standard active switch. More... | |
Protected Member Functions inherited from auryn::Monitor | |
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 binary file.
BinarySpikeMonitor is specified with a source group of type SpikingGroup and writes all or a specified range of the neurons spikes to a file that has to be given at construction time. The output files can be read and converted to ascii ras files using the tool aube (Auryn Binary Extractor) which compiles in the tools folder.
BinarySpikeMonitor::BinarySpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename = "" |
||
) |
BinarySpikeMonitor::BinarySpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename, | ||
NeuronID | to | ||
) |
BinarySpikeMonitor::BinarySpikeMonitor | ( | SpikingGroup * | source, |
std::string | filename, | ||
NeuronID | from, | ||
NeuronID | to | ||
) |
|
virtual |
|
virtual |
Virtual execute function to be called at the end of central simulation loop in System
Reimplemented from auryn::Device.
|
virtual |
void BinarySpikeMonitor::set_every | ( | NeuronID | every | ) |
void BinarySpikeMonitor::set_offset | ( | NeuronID | of | ) |