GeNN
4.9.0
GPU enhanced Neuronal Networks (GeNN)
|
#include <currentSourceModels.h>
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< Var > | VarVec |
typedef std::vector< VarRef > | VarRefVec |
typedef std::vector< EGPRef > | EGPRefVec |
Public Types inherited from Snippet::Base | |
typedef std::vector< std::string > | StringVec |
typedef std::vector< EGP > | EGPVec |
typedef std::vector< ParamVal > | ParamValVec |
typedef std::vector< DerivedParam > | DerivedParamVec |
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 ¶mName) const |
Find the index of a named extra global parameter. More... | |
Static Public Member Functions | |
static const PoissonExp * | getInstance () |
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) |
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]
|
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.
|
inlinestatic |
|
inlineoverridevirtual |
Gets names of of (independent) model parameters.
Reimplemented from Snippet::Base.
|
inlineoverridevirtual |
Gets names and types (as strings) of model variables.
Reimplemented from Models::Base.
CurrentSourceModels::PoissonExp::SET_INJECTION_CODE | ( | ) |