12 #define SET_DECAY_CODE(DECAY_CODE) virtual std::string getDecayCode() const override{ return DECAY_CODE; } 13 #define SET_CURRENT_CONVERTER_CODE(CURRENT_CONVERTER_CODE) virtual std::string getApplyInputCode() const override{ return "$(Isyn) += " CURRENT_CONVERTER_CODE ";"; } 14 #define SET_APPLY_INPUT_CODE(APPLY_INPUT_CODE) virtual std::string getApplyInputCode() const override{ return APPLY_INPUT_CODE; } 15 #define SET_SUPPORT_CODE(SUPPORT_CODE) virtual std::string getSupportCode() const override{ return SUPPORT_CODE; } 37 boost::uuids::detail::sha1::digest_type getHashDigest()
const;
40 void validate()
const;
61 {
"expDecay", [](
const std::vector<double> &pars,
double dt){
return std::exp(-dt / pars[0]); }},
62 {
"init", [](
const std::vector<double> &pars,
double dt){
return (pars[0] * (1.0 - std::exp(-dt / pars[0]))) * (1.0 / dt); }}});
85 SET_DERIVED_PARAMS({{
"expDecay", [](
const std::vector<double> &pars,
double dt){
return std::exp(-dt / pars[0]); }}});
#define SET_CURRENT_CONVERTER_CODE(CURRENT_CONVERTER_CODE)
Definition: postsynapticModels.h:13
Definition: postsynapticModels.h:20
#define GENN_EXPORT
Definition: gennExport.h:13
#define SET_DECAY_CODE(DECAY_CODE)
Definition: postsynapticModels.h:12
Exponential decay with synaptic input treated as a current value.
Definition: postsynapticModels.h:49
Base class for all postsynaptic models.
Definition: postsynapticModels.h:23
#define DECLARE_MODEL(TYPE, NUM_PARAMS, NUM_VARS)
Definition: models.h:31
Simple delta current synapse.
Definition: postsynapticModels.h:93
#define SET_DERIVED_PARAMS(...)
Definition: snippet.h:37
Exponential decay with synaptic input treated as a conductance value.
Definition: postsynapticModels.h:74
#define SET_PARAM_NAMES(...)
Definition: snippet.h:36
virtual std::string getDecayCode() const
Definition: postsynapticModels.h:29
virtual std::string getSupportCode() const
Definition: postsynapticModels.h:31
virtual std::string getApplyInputCode() const
Definition: postsynapticModels.h:30