![]() |
GeNN
3.3.0
GPU enhanced Neuronal Networks (GeNN)
|
Initialises variable by sampling from the normal distribution. More...
#include <initVarSnippet.h>
Public Member Functions | |
| DECLARE_SNIPPET (InitVarSnippet::Normal, 2) | |
| SET_CODE ("$(value) = $(mean) + ($(gennrand_normal) * $(sd));") | |
| virtual StringVec | getParamNames () const override |
| Gets names of of (independent) model parameters. More... | |
Public Member Functions inherited from InitVarSnippet::Base | |
| virtual std::string | getCode () const |
Public Member Functions inherited from Snippet::Base | |
| virtual | ~Base () |
| virtual DerivedParamVec | getDerivedParams () const |
Additional Inherited Members | |
Public Types inherited from Snippet::Base | |
| typedef std::function< double(const std::vector< double > &, double)> | DerivedParamFunc |
| typedef std::vector< std::string > | StringVec |
| typedef std::vector< std::pair< std::string, std::string > > | StringPairVec |
| typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > | NameTypeValVec |
| typedef std::vector< std::pair< std::string, DerivedParamFunc > > | DerivedParamVec |
Initialises variable by sampling from the normal distribution.
This snippet takes 2 parameters:
mean - The meansd - The standard distribution | InitVarSnippet::Normal::DECLARE_SNIPPET | ( | InitVarSnippet::Normal | , |
| 2 | |||
| ) |
|
inlineoverridevirtual |
Gets names of of (independent) model parameters.
Reimplemented from Snippet::Base.
| InitVarSnippet::Normal::SET_CODE | ( | ) |