26 #ifndef POISSONSTIMULATOR_H_ 27 #define POISSONSTIMULATOR_H_ 36 #include <boost/random/mersenne_twister.hpp> 37 #include <boost/random/variate_generator.hpp> 38 #include <boost/random/poisson_distribution.hpp> 51 static boost::mt19937 gen;
52 boost::poisson_distribution<int> * dist;
53 boost::variate_generator<boost::mt19937&, boost::poisson_distribution<int> > * die;
Stimulator class to inject timeseries of currents NeuronGroups.
Definition: PoissonStimulator.h:47
NeuronGroup * dst
Definition: PoissonStimulator.h:82
virtual ~PoissonStimulator()
Default Destructor.
Definition: PoissonStimulator.cpp:65
AurynFloat get_rate()
Returns the event rate of the underlying Poisson generator.
Definition: PoissonStimulator.cpp:86
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 execute()
Implementation of necessary execute() function.
Definition: PoissonStimulator.cpp:70
void set_rate(AurynFloat rate)
Sets the event rate of the underlying Poisson generator.
Definition: PoissonStimulator.cpp:80
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
Default AurynVectorFloat class for performance computation.
Definition: AurynVector.h:796
void set_target_state(string state_name="mem")
Sets the state that is stimulated.
Definition: PoissonStimulator.cpp:94
void seed(int s)
Seeds the random number generator of all PoissonStimulator objects on this rank.
Definition: PoissonStimulator.cpp:98
PoissonStimulator(NeuronGroup *target, AurynFloat rate=100.0, AurynWeight w=0.1)
Default Constructor.
Definition: PoissonStimulator.cpp:32
Abstract base class for all Device, Stimulator, etc objects.
Definition: Device.h:47