GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
InitVarSnippet::NormalClippedDelay Class Reference

#include <initVarSnippet.h>

Inheritance diagram for InitVarSnippet::NormalClippedDelay:
InitVarSnippet::Base Snippet::Base

Public Member Functions

 DECLARE_SNIPPET (InitVarSnippet::NormalClippedDelay, 4)
 
 SET_CODE ("scalar normal;\ "do\" "{\" " normal=$(meanTimestep)+($(gennrand_normal) *$(sdTimestep));\" "} while(normal > $(maxTimestep)||normal< $(minTimestep));\" "$(value)=rint(normal);\")
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const override
 
- Public Member Functions inherited from InitVarSnippet::Base
virtual std::string getCode () const
 
boost::uuids::detail::sha1::digest_type getHashDigest () const
 Update hash from snippet. More...
 
bool requiresKernel () const
 Does this var init snippet require kernel-based connectivity. More...
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 
virtual EGPVec getExtraGlobalParams () const
 
size_t getExtraGlobalParamIndex (const std::string &paramName) const
 Find the index of a named extra global parameter. More...
 

Additional Inherited Members

- Public Types inherited from Snippet::Base
typedef std::vector< std::string > StringVec
 
typedef std::vector< EGPEGPVec
 
typedef std::vector< ParamValParamValVec
 
typedef std::vector< DerivedParamDerivedParamVec
 
- Protected Member Functions inherited from Snippet::Base
void updateHash (boost::uuids::detail::sha1 &hash) const
 
void validate () const
 Validate names of parameters etc. More...
 
- Static Protected Member Functions inherited from Snippet::Base
template<typename T >
static size_t getNamedVecIndex (const std::string &name, const std::vector< T > &vec)
 

Detailed Description

Initialises variable by sampling from the normal distribution, Resamples value of out of range specified my min and max. This snippet is intended for initializing (dendritic) delay parameters where parameters are specified in ms but converted to timesteps.

This snippet takes 2 parameters:

  • mean - The mean [ms]
  • sd - The standard deviation [ms]
  • min - The minimum value [ms]
  • max - The maximum value [ms]

Member Function Documentation

◆ DECLARE_SNIPPET()

InitVarSnippet::NormalClippedDelay::DECLARE_SNIPPET ( InitVarSnippet::NormalClippedDelay  ,
 
)

◆ getDerivedParams()

virtual DerivedParamVec InitVarSnippet::NormalClippedDelay::getDerivedParams ( ) const
inlineoverridevirtual

Gets names of derived model parameters and the function objects to call to Calculate their value from a vector of model parameter values

Reimplemented from Snippet::Base.

◆ getParamNames()

virtual StringVec InitVarSnippet::NormalClippedDelay::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ SET_CODE()

InitVarSnippet::NormalClippedDelay::SET_CODE ( )

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