CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
a range struct for synaptic weight magnitudes More...
#include <carlsim_datastructures.h>
Public Member Functions | |
RangeWeight (double _min, double _init, double _max) | |
RangeWeight (double _min, double _max) | |
RangeWeight (double _val) | |
Public Attributes | |
double | init |
double | max |
double | min |
Friends | |
std::ostream & | operator<< (std::ostream &strm, const RangeWeight &w) |
Plastic synaptic weights are initialized to initWt, and can range between some minWt and some maxWt. Fixed weights will always have the same value. All weight values should be non-negative (equivalent to weight magnitudes), even for inhibitory connections.
[in] | min | the lower bound for weight values |
[in] | init | the initial value for weight values |
[in] | max | the upper bound for weight values Examples: RangeWeight(0.1) => all weights will be 0.1 (wt.min=0.1, wt.max=0.1, wt.init=0.1) RangeWeight(0.0,0.2) => If pre is excitatory: all weights will be in range [0.0,0.2], and wt.init=0.0. If pre is inhibitory: all weights will be in range [-0.2,0.0], and wt.init=0.0. RangeWeight(0.0,0.1,0.2) => If pre is excitatory: all weights will be in range [0.0,0.2], and wt.init=0.1. If pre is inhibitory: all weights will be in range [-0.2,0.0], and wt.init=0.0. |
Definition at line 312 of file carlsim_datastructures.h.
|
inline |
Definition at line 313 of file carlsim_datastructures.h.
|
inline |
Definition at line 318 of file carlsim_datastructures.h.
|
inline |
Definition at line 324 of file carlsim_datastructures.h.
|
friend |
Definition at line 332 of file carlsim_datastructures.h.
double init |
Definition at line 335 of file carlsim_datastructures.h.
double max |
Definition at line 335 of file carlsim_datastructures.h.
double min |
Definition at line 335 of file carlsim_datastructures.h.