CARLsim  6.1.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 _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 436 of file carlsim_datastructures.h.

Constructor & Destructor Documentation

◆ RangeWeight() [1/3]

RangeWeight ( double  _val)
inline

Definition at line 437 of file carlsim_datastructures.h.

◆ RangeWeight() [2/3]

RangeWeight ( double  _min,
double  _max 
)
inline

Definition at line 442 of file carlsim_datastructures.h.

Here is the call graph for this function:

◆ RangeWeight() [3/3]

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

Definition at line 448 of file carlsim_datastructures.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 456 of file carlsim_datastructures.h.

Member Data Documentation

◆ init

double init

Definition at line 459 of file carlsim_datastructures.h.

◆ max

double max

Definition at line 459 of file carlsim_datastructures.h.

◆ min

double min

Definition at line 459 of file carlsim_datastructures.h.


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