26 #ifndef WEIGHTMONITOR_H_ 27 #define WEIGHTMONITOR_H_ 81 std::vector<type_pattern> *
load_patfile(
string filename,
unsigned int maxpat );
149 void add_to_list( std::vector<neuron_pair> vec ,
string label =
"");
Abstract base class for all Monitor objects.
Definition: Monitor.h:47
std::vector< NeuronID > group_indices
Definition: WeightMonitor.h:75
RecordingMode recordingmode
Definition: WeightMonitor.h:70
PatternMode
Definition: WeightMonitor.h:55
SparseConnection * src
Definition: WeightMonitor.h:68
The entire Monitor will record from a single synapse specified at initialization. ...
Definition: WeightMonitor.h:45
std::vector< AurynLong > * element_list
Definition: WeightMonitor.h:74
void add_to_list(AurynWeight *ptr)
Adds a single element to the recording list which is identified by a pointer.
Definition: WeightMonitor.cpp:98
RecordingMode
Definition: WeightMonitor.h:44
std::vector< type_pattern > * load_patfile(string filename, unsigned int maxpat)
Definition: WeightMonitor.cpp:189
AurynTime ssize
Definition: WeightMonitor.h:73
double AurynDouble
Higher precision floating point datatype.
Definition: auryn_definitions.h:158
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
void add_equally_spaced(NeuronID number, NeuronID z=0)
Adds number of elements to the recording list that are equally spaced in the data vector of the conne...
Definition: WeightMonitor.cpp:145
The base class to create sparse random connections.
Definition: SparseConnection.h:66
NeuronID elem_j
Definition: WeightMonitor.h:72
virtual ~WeightMonitor()
Definition: WeightMonitor.cpp:63
Template for a sparse matrix with row major ordering and fast access of rows and capability to store ...
Definition: ComplexMatrix.h:75
void init()
Standard initializer to be called by the constructor.
Definition: Device.cpp:32
Definition: ABSConnection.h:38
unsigned long AurynLong
An unsigned long type used to count synapses or similar.
Definition: auryn_definitions.h:154
The Monitor will record from a range of synapses specified at initialization.
Definition: WeightMonitor.h:46
ForwardMatrix * mat
Definition: WeightMonitor.h:69
The Monitor records from selected synapses stored in a list. This is the default behavior.
Definition: WeightMonitor.h:47
void execute()
propagate function used by System class internally
Definition: WeightMonitor.cpp:348
void add_to_list_by_data_index(AurynLong index, StateID z=0)
Adds a single element to the recording list which is identified by its data index and z-state...
Definition: WeightMonitor.cpp:93
void load_data_range(AurynLong i, AurynLong j)
Adds connections from a given range in the sparse matrix data array.
Definition: WeightMonitor.cpp:171
Definition: WeightMonitor.h:55
void set_mat(ForwardMatrix *m)
Sets target matrix to read from.
Definition: WeightMonitor.cpp:360
void record_synapse_groups()
Definition: WeightMonitor.cpp:330
void record_single_synapses()
Definition: WeightMonitor.cpp:318
void load_pattern_connections(string filename, unsigned int maxcon=5, unsigned int maxpat=10, PatternMode patmod=ALLTOALL)
Adds connections inside a pattern and between patterns. Since such lists can become large quickly the...
Definition: WeightMonitor.cpp:256
Definition: WeightMonitor.h:55
WeightMonitor(SparseConnection *source, string filename, AurynDouble interval=10.0)
Default constructor.
Definition: WeightMonitor.cpp:30
NeuronID elem_i
Definition: WeightMonitor.h:71
NeuronID AurynTime
Defines Auryns discrete time unit of the System clock. Change to AurynLong if 120h of simtime are not...
Definition: auryn_definitions.h:155
unsigned int StateID
StateID is an unsigned integeger type used to index synaptic states in Auryn.
Definition: auryn_definitions.h:153
Monitors the evolution of a single or a set of weights.
Definition: WeightMonitor.h:65
Definition: WeightMonitor.h:48
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151