class CurrentSourceModels::GaussianNoise¶
Overview¶
Noisy current source with noise drawn from normal distribution. More…
#include <currentSourceModels.h> class GaussianNoise: public CurrentSourceModels::Base { public: // typedefs typedef Snippet::ValueBase<2> ParamValues; typedef Models::VarInitContainerBase<0> VarValues; typedef Models::VarInitContainerBase<0> PreVarValues; typedef Models::VarInitContainerBase<0> PostVarValues; // methods static const GaussianNoise* getInstance(); SET_INJECTION_CODE("$(injectCurrent, $(mean) + $(gennrand_normal)* $(sd));\n"); virtual StringVec getParamNames() const; };
Inherited Members¶
public: // typedefs typedef std::vector<std::string> StringVec; typedef std::vector<EGP> EGPVec; typedef std::vector<ParamVal> ParamValVec; typedef std::vector<DerivedParam> DerivedParamVec; typedef std::vector<Var> VarVec; // structs struct DerivedParam; struct EGP; struct ParamVal; struct Var; // methods virtual ~Base(); virtual StringVec getParamNames() const; virtual DerivedParamVec getDerivedParams() const; virtual VarVec getVars() const; virtual EGPVec getExtraGlobalParams() const; size_t getVarIndex(const std::string& varName) const; size_t getExtraGlobalParamIndex(const std::string& paramName) const; virtual std::string getInjectionCode() const;
Detailed Documentation¶
Noisy current source with noise drawn from normal distribution.
It has 2 parameters:
mean
- mean of the normal distribution [nA]sd
- standard deviation of the normal distribution [nA]