GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
WeightUpdateModels::StaticGraded Class Reference

Graded-potential, static synapse. More...

#include <weightUpdateModels.h>

Inheritance diagram for WeightUpdateModels::StaticGraded:
WeightUpdateModels::Base Models::Base Snippet::Base

Public Member Functions

 DECLARE_WEIGHT_UPDATE_MODEL (StaticGraded, 2, 1, 0, 0)
 
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 std::string getEventCode () const override
 Gets code run when events (all the instances where event threshold condition is met) are received. More...
 
virtual std::string getEventThresholdConditionCode () const override
 Gets codes to test for events. More...
 
- Public Member Functions inherited from WeightUpdateModels::Base
virtual std::string getSimCode () const
 Gets simulation code run when 'true' spikes are received. More...
 
virtual std::string getLearnPostCode () const
 Gets code to include in the learnSynapsesPost kernel/function. More...
 
virtual std::string getSynapseDynamicsCode () const
 Gets code for synapse dynamics which are independent of spike detection. More...
 
virtual std::string getSimSupportCode () const
 Gets support code to be made available within the synapse kernel/function. More...
 
virtual std::string getLearnPostSupportCode () const
 Gets support code to be made available within learnSynapsesPost kernel/function. More...
 
virtual std::string getSynapseDynamicsSuppportCode () const
 Gets support code to be made available within the synapse dynamics kernel/function. More...
 
virtual std::string getPreSpikeCode () const
 
virtual std::string getPostSpikeCode () const
 
virtual std::string getPreDynamicsCode () const
 Gets code to be run after presynaptic neuron update. More...
 
virtual std::string getPostDynamicsCode () const
 Gets code to be run after postsynaptic neuron update. More...
 
virtual VarVec getPreVars () const
 
virtual VarVec getPostVars () const
 
virtual bool isPreSpikeTimeRequired () const
 Whether presynaptic spike times are needed or not. More...
 
virtual bool isPostSpikeTimeRequired () const
 Whether postsynaptic spike times are needed or not. More...
 
virtual bool isPreSpikeEventTimeRequired () const
 Whether presynaptic spike-like-event times are needed or not. More...
 
virtual bool isPrevPreSpikeTimeRequired () const
 Whether PREVIOUS presynaptic spike times are needed or not. More...
 
virtual bool isPrevPostSpikeTimeRequired () const
 Whether PREVIOUS postsynaptic spike times are needed or not. More...
 
virtual bool isPrevPreSpikeEventTimeRequired () const
 Whether PREVIOUS presynaptic spike-like-event times are needed or not. More...
 
size_t getPreVarIndex (const std::string &varName) const
 Find the index of a named presynaptic variable. More...
 
size_t getPostVarIndex (const std::string &varName) const
 Find the index of a named postsynaptic variable. 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 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...
 

Additional Inherited Members

- 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
 
- 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

Graded-potential, static synapse.

In a graded synapse, the conductance is updated gradually with the rule:

\[ gSyn= g * tanh((V - E_{pre}) / V_{slope} \]

whenever the membrane potential $V$ is larger than the threshold $E_{pre}$. The model has 1 variable:

  • g: conductance of scalar type

The parameters are:

  • Epre: Presynaptic threshold potential
  • Vslope: Activation slope of graded release

event code is:

$(addToInSyn, $(g)* tanh(($(V_pre)-($(Epre)))*DT*2/$(Vslope)));

event threshold condition code is:

$(V_pre) > $(Epre)
Note
The pre-synaptic variables are referenced with the suffix _pre in synapse related code such as an the event threshold test. Users can also access post-synaptic neuron variables using the suffix _post.

Member Function Documentation

◆ DECLARE_WEIGHT_UPDATE_MODEL()

WeightUpdateModels::StaticGraded::DECLARE_WEIGHT_UPDATE_MODEL ( StaticGraded  ,
,
,
,
 
)

◆ getEventCode()

virtual std::string WeightUpdateModels::StaticGraded::getEventCode ( ) const
inlineoverridevirtual

Gets code run when events (all the instances where event threshold condition is met) are received.

Reimplemented from WeightUpdateModels::Base.

◆ getEventThresholdConditionCode()

virtual std::string WeightUpdateModels::StaticGraded::getEventThresholdConditionCode ( ) const
inlineoverridevirtual

Gets codes to test for events.

Reimplemented from WeightUpdateModels::Base.

◆ getParamNames()

virtual StringVec WeightUpdateModels::StaticGraded::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ getVars()

virtual VarVec WeightUpdateModels::StaticGraded::getVars ( ) const
inlineoverridevirtual

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

Reimplemented from Models::Base.


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