CARLsim  3.1.3
CARLsim: a GPU-accelerated SNN simulator
RangeWeight Struct Reference

a range struct for synaptic weight magnitudes More...

#include <carlsim_datastructures.h>

Public Member Functions

 RangeWeight (double _val)
 
 RangeWeight (double _min, double _max)
 
 RangeWeight (double _min, double _init, double _max)
 

Public Attributes

double init
 
double max
 
double min
 

Friends

std::ostream & operator<< (std::ostream &strm, const RangeWeight &w)
 

Detailed Description

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.

Parameters
[in]minthe lower bound for weight values
[in]initthe initial value for weight values
[in]maxthe 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 294 of file carlsim_datastructures.h.

Constructor & Destructor Documentation

RangeWeight ( double  _val)
inline

Definition at line 295 of file carlsim_datastructures.h.

RangeWeight ( double  _min,
double  _max 
)
inline

Definition at line 300 of file carlsim_datastructures.h.

RangeWeight ( double  _min,
double  _init,
double  _max 
)
inline

Definition at line 306 of file carlsim_datastructures.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  strm,
const RangeWeight w 
)
friend

Definition at line 314 of file carlsim_datastructures.h.

Member Data Documentation

double init

Definition at line 317 of file carlsim_datastructures.h.

double max

Definition at line 317 of file carlsim_datastructures.h.

double min

Definition at line 317 of file carlsim_datastructures.h.


The documentation for this struct was generated from the following file: