CARLsim  5.0.0
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 _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)
 

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 312 of file carlsim_datastructures.h.

Constructor & Destructor Documentation

◆ RangeWeight() [1/3]

RangeWeight ( double  _val)
inline

Definition at line 313 of file carlsim_datastructures.h.

◆ RangeWeight() [2/3]

RangeWeight ( double  _min,
double  _max 
)
inline

Definition at line 318 of file carlsim_datastructures.h.

◆ RangeWeight() [3/3]

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

Definition at line 324 of file carlsim_datastructures.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 332 of file carlsim_datastructures.h.

Member Data Documentation

◆ init

double init

Definition at line 335 of file carlsim_datastructures.h.

◆ max

double max

Definition at line 335 of file carlsim_datastructures.h.

◆ min

double min

Definition at line 335 of file carlsim_datastructures.h.


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