Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
Stimulator class to inject timeseries of currents to patterns (subpopulations) of neurons. More...
#include <NormalStimulator.h>
Public Member Functions | |
NormalStimulator (NeuronGroup *target, AurynWeight sigma=1.0, string target_state="inj_current") | |
virtual | ~NormalStimulator () |
void | set_sigma (AurynFloat sigma) |
AurynFloat | get_sigma () |
void | seed (int s) |
void | set_target_state (string state_name="inj_current") |
void | execute () |
Protected Attributes | |
NeuronGroup * | dst |
Protected Attributes inherited from auryn::Device | |
std::string | device_name |
Identifying name for device. More... | |
bool | active |
Standard active switch. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from auryn::Device | |
void | init () |
Standard initializer to be called by the constructor. More... | |
virtual void | virtual_serialize (boost::archive::binary_oarchive &ar, const unsigned int version) |
virtual void | virtual_serialize (boost::archive::binary_iarchive &ar, const unsigned int version) |
Device () | |
Standard constructor. More... | |
void | set_name (std::string s) |
Set device name. More... | |
std::string | get_name () |
Get device name. More... | |
int | get_id () |
Get numeric device id. More... | |
virtual void | flush () |
Flush to file. More... | |
virtual | ~Device () |
Standard destructor. More... | |
virtual void | evolve () |
Stimulator class to inject timeseries of currents to patterns (subpopulations) of neurons.
Instances of this class inject currents that vary over time to subpopulations of the NeuronGroup assigned.
NormalStimulator::NormalStimulator | ( | NeuronGroup * | target, |
AurynWeight | sigma = 1.0 , |
||
std::string | target_state = "inj_current" |
||
) |
Default Constructor
|
virtual |
Implementation of necessary execute() function.
Reimplemented from auryn::Device.
AurynFloat NormalStimulator::get_sigma | ( | ) |
Returns the event rate of the underlying Normal generator
void NormalStimulator::seed | ( | int | s | ) |
Seeds the random number generator of all NormalStimulator objects
void NormalStimulator::set_sigma | ( | AurynFloat | sigma | ) |
void NormalStimulator::set_target_state | ( | std::string | state_name = "inj_current" | ) |
Sets the state that is stimulated with Normal input. This must be a valid state vector name (default = mem)
|
protected |
The target NeuronGroup