2 #ifndef POSTSYNAPSEMODELS_H 3 #define POSTSYNAPSEMODELS_H 51 return expDecay(pars, dt);
57 double expDecay(
const vector<double>& pars,
double dt) {
58 return exp(-dt/pars[0]);
70 #endif // POSTSYNAPSEMODELS_H string postSynDecay
Code that defines how postsynaptic current decays.
Definition: postSynapseModels.h:21
void preparePostSynModels()
Function that prepares the standard post-synaptic models, including their variables, parameters, dependent parameters and code strings.
Definition: postSynapseModels.cc:38
vector< string > varTypes
Types of the variable named above, e.g. "float". Names and types are matched by their order of occurr...
Definition: postSynapseModels.h:24
Class to hold the information that defines a post-synaptic model (a model of how synapses affect post...
Definition: postSynapseModels.h:17
const unsigned int MAXPOSTSYN
Definition: postSynapseModels.h:38
unsigned int EXPDECAY
Definition: postSynapseModels.cc:29
string supportCode
Support code is made available within the neuron kernel definition file and is meant to contain user ...
Definition: postSynapseModels.h:22
dpclass * dps
Derived parameters.
Definition: postSynapseModels.h:27
vector< string > dpNames
Names of dependent parameters of the model.
Definition: postSynapseModels.h:26
vector< postSynModel > postSynModels
Global C++ vector containing all post-synaptic update model descriptions.
Definition: postSynapseModels.cc:28
vector< string > varNames
Names of the variables in the postsynaptic model.
Definition: postSynapseModels.h:23
string postSyntoCurrent
Code that defines how postsynaptic update is translated to current.
Definition: postSynapseModels.h:20
vector< string > pNames
Names of (independent) parameters of the model.
Definition: postSynapseModels.h:25
Class defining the dependent parameter for exponential decay.
Definition: postSynapseModels.h:45
unsigned int IZHIKEVICH_PS
Definition: postSynapseModels.cc:30
double calculateDerivedParameter(int index, vector< double > pars, double dt=1.0)
Definition: postSynapseModels.h:48