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

#include <currentSourceModels.h>

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

Public Types

typedef Snippet::ValueBase< 3 > ParamValues
 
typedef Models::VarInitContainerBase< 1 > 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 ("scalar p = 1.0f;\ "unsigned int numSpikes=0;\" "do\" "{\" " numSpikes++;\" " p *=$(gennrand_uniform);\" "} while(p > $(ExpMinusLambda));\" "$(current)+=$(Init) *(scalar)(numSpikes - 1);\" "$(injectCurrent, $(current));\" "$(current) *=$(ExpDecay);\")
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
virtual VarVec getVars () const override
 Gets names and types (as strings) of model variables. More...
 
virtual DerivedParamVec getDerivedParams () const override
 
- 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
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 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 PoissonExpgetInstance ()
 

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

Current source for injecting a current equivalent to a population of Poisson spike sources, one-to-one connected with exponential synapses

It has 3 parameters:

  • weight - synaptic weight of the Poisson spikes [nA]
  • tauSyn - decay time constant [ms]
  • rate - mean firing rate [Hz]

Member Typedef Documentation

◆ ParamValues

◆ PostVarValues

◆ PreVarValues

◆ VarValues

Member Function Documentation

◆ getDerivedParams()

virtual DerivedParamVec CurrentSourceModels::PoissonExp::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.

◆ getInstance()

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

◆ getParamNames()

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

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ getVars()

virtual VarVec CurrentSourceModels::PoissonExp::getVars ( ) const
inlineoverridevirtual

Gets names and types (as strings) of model variables.

Reimplemented from Models::Base.

◆ SET_INJECTION_CODE()

CurrentSourceModels::PoissonExp::SET_INJECTION_CODE ( )

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