Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
Public Member Functions | List of all members
auryn::ExpCubaSynapse Class Reference

Implements an exponential current-based synapse model. More...

#include <ExpCubaSynapse.h>

Inheritance diagram for auryn::ExpCubaSynapse:
Inheritance graph
[legend]
Collaboration diagram for auryn::ExpCubaSynapse:
Collaboration graph
[legend]

Public Member Functions

 ExpCubaSynapse (NeuronGroup *parent, AurynStateVector *input, AurynStateVector *output)
 
void set_tau (const AurynState tau)
 Sets synaptic decay time scale. More...
 
virtual void evolve ()
 
- Public Member Functions inherited from auryn::SynapseModel
 SynapseModel (NeuronGroup *parent, AurynStateVector *input, AurynStateVector *output)
 

Additional Inherited Members

- Protected Attributes inherited from auryn::SynapseModel
NeuronGroupparent_group
 
AurynStateVectorinput_state
 
AurynStateVectoroutput_state
 

Detailed Description

Implements an exponential current-based synapse model.

Requires input and output state to be the same, because the model directly operates on the input state, by just multiplying its value.

Default timescale is 5e-3s.

Constructor & Destructor Documentation

◆ ExpCubaSynapse()

ExpCubaSynapse::ExpCubaSynapse ( NeuronGroup parent,
AurynStateVector input,
AurynStateVector output 
)
31  : SynapseModel( parent, input, output )
32 {
33  if ( input != output ) {
34  logger->warning("ExpCubaSynapse requires input and output state to be the same!");
35  }
36 
37  set_tau(5e-3); // sets a default timescale
38 }
void warning(std::string text)
Definition: Logger.cpp:136
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
SynapseModel(NeuronGroup *parent, AurynStateVector *input, AurynStateVector *output)
Definition: SynapseModel.cpp:30
void set_tau(const AurynState tau)
Sets synaptic decay time scale.
Definition: ExpCubaSynapse.cpp:40
Here is the call graph for this function:

Member Function Documentation

◆ evolve()

void ExpCubaSynapse::evolve ( )
virtual

Implements auryn::SynapseModel.

47 {
48  input_state->scale(mul_syn);
49 }
void scale(const float a)
Definition: AurynVector.cpp:74
AurynStateVector * input_state
Definition: SynapseModel.h:55
Here is the call graph for this function:

◆ set_tau()

void ExpCubaSynapse::set_tau ( const AurynState  tau)

Sets synaptic decay time scale.

41 {
42  tau_syn = tau;
43  mul_syn = std::exp(-auryn_timestep/tau_syn);
44 }
double auryn_timestep
Simulation timestep in seconds.
Definition: auryn_definitions.cpp:31

The documentation for this class was generated from the following files: