Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
Records mean weights from a connection specified by one or two pattern files. Can be used to easily monitor the mean synaptic weight in assemblies or feed-forward connections of populations of neurons. More...
#include <WeightPatternMonitor.h>
Public Member Functions | |
WeightPatternMonitor (Connection *source, string filename, AurynDouble binsize=10.0) | |
void | load_pre_patterns (string filename) |
void | load_post_patterns (string filename) |
void | load_patterns (string filename) |
virtual | ~WeightPatternMonitor () |
void | execute () |
Public Attributes | |
size_t | max_patterns |
Protected Member Functions | |
void | init (Connection *source, string filename, AurynTime stepsize) |
AurynWeight | compute_pattern_mean (const NeuronID i, const NeuronID j) |
void | load_patterns (std::string filename, std::vector< type_pattern > &patterns) |
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 | |
Connection * | src |
AurynTime | ssize |
std::vector< type_pattern > | pre_patterns |
std::vector< type_pattern > | post_patterns |
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... | |
Records mean weights from a connection specified by one or two pattern files. Can be used to easily monitor the mean synaptic weight in assemblies or feed-forward connections of populations of neurons.
WeightPatternMonitor::WeightPatternMonitor | ( | Connection * | source, |
std::string | filename, | ||
AurynDouble | binsize = 10.0 |
||
) |
|
protected |
|
virtual |
Virtual execute function to be called at the end of central simulation loop in System
Reimplemented from auryn::Device.
|
protected |
|
protected |
Mother function for loading patterns
void WeightPatternMonitor::load_patterns | ( | std::string | filename | ) |
Loads patterns for symmetric assembly monitoring
void WeightPatternMonitor::load_post_patterns | ( | std::string | filename | ) |
Loads post patterns for asymmetric monitoring. Each post pattern needs to be matched by a corresponding pre pattern otherwise there will be a crash.
void WeightPatternMonitor::load_pre_patterns | ( | std::string | filename | ) |
Loads pre patterns for asymmetric monitoring. Each pre pattern needs to be matched by a corresponding post pattern otherwise there will be a crash.
size_t auryn::WeightPatternMonitor::max_patterns |
Maximum number of patterns to record from
|
protected |
|
protected |
|
protected |
|
protected |