Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
LinearComboSynapse.h
Go to the documentation of this file.
1 /*
2 * Copyright 2014-2018 Friedemann Zenke
3 *
4 * This file is part of Auryn, a simulation package for plastic
5 * spiking neural networks.
6 *
7 * Auryn is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * Auryn is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Auryn. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * If you are using Auryn or parts of it for your work please cite:
21 * Zenke, F. and Gerstner, W., 2014. Limits to high-speed simulations
22 * of spiking neural networks using general-purpose computers.
23 * Front Neuroinform 8, 76. doi: 10.3389/fninf.2014.00076
24 */
25 
26 #ifndef LINEARCOMBOSYNAPSE_H_
27 #define LINEARCOMBOSYNAPSE_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "NeuronGroup.h"
32 #include "SynapseModel.h"
33 #include "System.h"
34 
35 namespace auryn {
36 
44  {
45  private:
46  AurynFloat tau_ampa, tau_nmda;
47  AurynFloat scale_ampa, mul_nmda;
48  AurynFloat A_ampa, A_nmda;
49  AurynFloat e_rev;
50 
51  AurynVectorFloat * g_ampa;
52  AurynVectorFloat * g_nmda;
53  AurynVectorFloat * temp;
54 
55  public:
57 
58  virtual ~LinearComboSynapse();
59 
61  void set_tau_ampa(const AurynState tau);
62 
64  void set_tau_nmda(const AurynState tau);
65 
67  void set_e_rev(const AurynState reversal_pot);
68 
72  void set_ampa_nmda_ratio(AurynFloat ratio);
73 
78 
79  void clear();
80  virtual void evolve();
81  };
82 }
83 
84 #endif /*LINEARCOMBOSYNAPSE_H_*/
85 
void set_e_rev(const AurynState reversal_pot)
Sets reversal potential.
Definition: LinearComboSynapse.cpp:64
Implements base class for modular synapse models.
Definition: SynapseModel.h:51
void set_nmda_ampa_current_ampl_ratio(AurynFloat ratio)
Sets nmda-ampa amplitude ratio.
Definition: LinearComboSynapse.cpp:89
void set_ampa_nmda_ratio(AurynFloat ratio)
Set ratio between ampa/nmda contribution to excitatory conductance.
Definition: LinearComboSynapse.cpp:83
Definition: ABSConnection.h:38
LinearComboSynapse(NeuronGroup *parent, AurynStateVector *input, AurynStateVector *output)
Definition: LinearComboSynapse.cpp:30
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
virtual ~LinearComboSynapse()
Definition: LinearComboSynapse.cpp:48
virtual void evolve()
Definition: LinearComboSynapse.cpp:69
void set_tau_nmda(const AurynState tau)
Sets Combo decay time scale.
Definition: LinearComboSynapse.cpp:58
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
Default AurynVectorFloat class for performance computation.
Definition: AurynVector.h:796
Implements Auryn&#39;s default conductance based AMPA, Combo synapse without Combo voltage dependence...
Definition: LinearComboSynapse.h:43
void set_tau_ampa(const AurynState tau)
Sets AMPA decay time scale.
Definition: LinearComboSynapse.cpp:52