Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
ModSynIFGroup.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 MODSYNIFGROUP_H_
27 #define MODSYNIFGROUP_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "NeuronGroup.h"
32 #include "ExpCobaSynapse.h"
33 #include "LinearComboSynapse.h"
34 #include "System.h"
35 
36 namespace auryn {
37 
49  class ModSynIFGroup : public NeuronGroup
50  {
51  private:
52  AurynStateVector * t_leak;
53  AurynStateVector * syn_current_exc;
54  AurynStateVector * syn_current_inh;
55  AurynFloat scale_thr;
56  AurynFloat tau_ampa,tau_gaba,tau_nmda;
57  AurynFloat e_rest,e_rev,thr_rest,tau_mem,tau_thr,dthr;
58 
59  LinearComboSynapse * exc_synapses; // AMPA and NMDA
60  ExpCobaSynapse * inh_synapses; // GABA
61 
62  void init();
63  void free();
64  void calculate_scale_constants();
65  void integrate_membrane();
66  void check_thresholds();
67 
68  public:
76  virtual ~ModSynIFGroup();
78  void set_tau_mem(AurynFloat taum);
81 
83  void set_tau_ampa(AurynFloat tau);
84 
87 
89  void set_tau_gaba(AurynFloat tau);
90 
93 
97  void set_tau_nmda(AurynFloat tau);
98 
102  void set_tau_thr(AurynFloat tau);
103 
107 
111  void set_ampa_nmda_ratio(AurynFloat ratio);
112 
117 
118  void clear();
119 
121  virtual void evolve();
122  };
123 }
124 
125 #endif /*MODSYNIFGROUP_H_*/
126 
void set_ampa_nmda_ratio(AurynFloat ratio)
Set ratio between ampa/nmda contribution to excitatory conductance.
Definition: ModSynIFGroup.cpp:198
Tries to make a smart choice.
Definition: SpikingGroup.h:51
Implements an exponential conductance-based synapse model.
Definition: ExpCobaSynapse.h:48
void set_tau_nmda(AurynFloat tau)
Sets the exponential decay time constant of the NMDA conductance (default=100ms). ...
Definition: ModSynIFGroup.cpp:171
void set_tau_gaba(AurynFloat tau)
Sets the exponential decay time constant of the GABA conductance (default=10ms).
Definition: ModSynIFGroup.cpp:160
AurynFloat e_reset
Definition: ModSynIFGroup.h:69
virtual void evolve()
Definition: ModSynIFGroup.cpp:129
AurynFloat get_tau_gaba()
Returns the exponential decay time constant of the GABA conductance.
Definition: ModSynIFGroup.cpp:166
virtual ~ModSynIFGroup()
Definition: ModSynIFGroup.cpp:88
AurynFloat get_tau_mem()
Returns the membrane time constant.
Definition: ModSynIFGroup.cpp:144
void clear()
Definition: ModSynIFGroup.cpp:73
Definition: ABSConnection.h:38
void set_tau_thr(AurynFloat tau)
Sets the exponential decay time constant of the threshold (default=5).
Definition: ModSynIFGroup.cpp:181
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
void set_tau_mem(AurynFloat taum)
Sets the membrane time constant.
Definition: ModSynIFGroup.cpp:138
ModSynIFGroup(NeuronID size, NodeDistributionMode distmode=AUTO)
Default constructor.
Definition: ModSynIFGroup.cpp:30
void set_tau_ampa(AurynFloat tau)
Sets the exponential decay time constant of the AMPA conductance (default=5ms).
Definition: ModSynIFGroup.cpp:149
NeuronID size
Stores the size of the group.
Definition: SpikingGroup.h:119
AurynFloat get_tau_ampa()
Returns the exponential decay time constant of the AMPA conductance.
Definition: ModSynIFGroup.cpp:155
AurynFloat get_tau_nmda()
Definition: ModSynIFGroup.cpp:188
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
Implements the standard integrate and file model used in Auryn.
Definition: ModSynIFGroup.h:49
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
void set_nmda_ampa_current_ampl_ratio(AurynFloat ratio)
Sets nmda-ampa amplitude ratio.
Definition: ModSynIFGroup.cpp:193
NodeDistributionMode
Specifies howto distribute different neurons across ranks when simulation is run in parallel...
Definition: SpikingGroup.h:50