GeNN  3.3.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 NewModels::Base Snippet::Base

Public Types

typedef Snippet::ValueBase< 2 > ParamValues
 
typedef NewModels::VarInitContainerBase< 0 > VarValues
 
typedef NewModels::VarInitContainerBase< 0 > PreVarValues
 
typedef NewModels::VarInitContainerBase< 0 > PostVarValues
 
- 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
 

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...
 
virtual NewModels::Base::StringPairVec getExtraGlobalParams () const
 Gets names and types (as strings) of additional parameters. More...
 
- Public Member Functions inherited from NewModels::Base
virtual StringPairVec 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
 

Static Public Member Functions

static const GaussianNoisegetInstance ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from NewModels::Base
static size_t getVarIndex (const std::string &varName, const StringPairVec &vars)
 

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: