21 #ifndef NORMALSTIMULATOR_H_ 22 #define NORMALSTIMULATOR_H_ 31 #include <boost/random/mersenne_twister.hpp> 32 #include <boost/random/variate_generator.hpp> 33 #include <boost/random/normal_distribution.hpp> 46 static boost::mt19937 gen;
47 boost::normal_distribution<float> * dist;
48 boost::variate_generator<boost::mt19937&, boost::normal_distribution<float> > * die;
void execute()
Definition: NormalStimulator.cpp:64
void set_target_state(string state_name="inj_current")
Definition: NormalStimulator.cpp:88
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
void init()
Standard initializer to be called by the constructor.
Definition: Device.cpp:32
Definition: ABSConnection.h:38
AurynFloat AurynState
Type for Auryn state variables (default single precision since it needs to be compatible with auryn_v...
Definition: auryn_definitions.h:160
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
void seed(int s)
Definition: NormalStimulator.cpp:92
Stimulator class to inject timeseries of currents to patterns (subpopulations) of neurons...
Definition: NormalStimulator.h:42
NormalStimulator(NeuronGroup *target, AurynWeight sigma=1.0, string target_state="inj_current")
Definition: NormalStimulator.cpp:27
virtual ~NormalStimulator()
Definition: NormalStimulator.cpp:59
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
Default AurynVectorFloat class for performance computation.
Definition: AurynVector.h:796
AurynFloat get_sigma()
Definition: NormalStimulator.cpp:80
void set_sigma(AurynFloat sigma)
Definition: NormalStimulator.cpp:74
NeuronGroup * dst
Definition: NormalStimulator.h:74
Abstract base class for all Device, Stimulator, etc objects.
Definition: Device.h:47