GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
CurrentSourceModels::GaussianNoise Class Reference

Noisy current source with noise drawn from normal distribution. More...

#include <currentSourceModels.h>

Inheritance diagram for CurrentSourceModels::GaussianNoise:
CurrentSourceModels::Base Models::Base Snippet::Base

Public Types

typedef Snippet::ValueBase< 2 > ParamValues
 
typedef Models::VarInitContainerBase< 0 > VarValues
 
typedef Models::VarInitContainerBase< 0 > PreVarValues
 
typedef Models::VarInitContainerBase< 0 > PostVarValues
 
- Public Types inherited from Models::Base
typedef std::vector< VarVarVec
 
typedef std::vector< VarRefVarRefVec
 
typedef std::vector< EGPRefEGPRefVec
 
- Public Types inherited from Snippet::Base
typedef std::vector< std::string > StringVec
 
typedef std::vector< EGPEGPVec
 
typedef std::vector< ParamValParamValVec
 
typedef std::vector< DerivedParamDerivedParamVec
 

Public Member Functions

 SET_INJECTION_CODE ("$(injectCurrent, $(mean) + $(gennrand_normal) * $(sd));\)
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
- Public Member Functions inherited from CurrentSourceModels::Base
virtual std::string getInjectionCode () const
 Gets the code that defines current injected each timestep. More...
 
boost::uuids::detail::sha1::digest_type getHashDigest () const
 Update hash from model. More...
 
void validate () const
 Validate names of parameters etc. More...
 
- Public Member Functions inherited from Models::Base
virtual VarVec getVars () const
 Gets names and types (as strings) of model variables. More...
 
size_t getVarIndex (const std::string &varName) const
 Find the index of a named variable. More...
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 
virtual DerivedParamVec getDerivedParams () const
 
virtual EGPVec getExtraGlobalParams () const
 
size_t getExtraGlobalParamIndex (const std::string &paramName) const
 Find the index of a named extra global parameter. More...
 

Static Public Member Functions

static const GaussianNoisegetInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from Models::Base
void updateHash (boost::uuids::detail::sha1 &hash) const
 
void validate () const
 Validate names of parameters etc. More...
 
- 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

Noisy current source with noise drawn from normal distribution.

It has 2 parameters:

  • mean - mean of the normal distribution [nA]
  • sd - standard deviation of the normal distribution [nA]

Member Typedef Documentation

◆ ParamValues

◆ PostVarValues

◆ PreVarValues

◆ VarValues

Member Function Documentation

◆ getInstance()

static const GaussianNoise* CurrentSourceModels::GaussianNoise::getInstance ( )
inlinestatic

◆ getParamNames()

virtual StringVec CurrentSourceModels::GaussianNoise::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ SET_INJECTION_CODE()

CurrentSourceModels::GaussianNoise::SET_INJECTION_CODE ( "$(injectCurrent, $(mean) + $(gennrand_normal) * $(sd));\  )

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