Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
NaudGroup.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 NAUDGROUP_H_
27 #define NAUDGROUP_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "NeuronGroup.h"
32 #include "System.h"
33 #include "ExpCobaSynapse.h"
34 #include "LinearComboSynapse.h"
35 
36 namespace auryn {
37 
50  class NaudGroup : public NeuronGroup
51  {
52  private:
53  AurynStateVector * state_soma;
54  AurynStateVector * state_dend;
55  AurynStateVector * state_wsoma;
56  AurynStateVector * state_wdend;
58  AurynVector<unsigned int> * post_spike_countdown;
59  unsigned int post_spike_reset;
60 
61  /* auxiliary state vectors used to compute synaptic currents */
62  AurynStateVector * t_leak;
63  AurynStateVector * t_exc;
64  AurynStateVector * t_inh;
65  AurynStateVector * temp;
66 
67 
68  AurynStateVector * g_ampa_dend, *g_gaba_dend;
69  AurynStateVector * syn_current_exc_soma, *syn_current_exc_dend;
70  AurynStateVector * syn_current_inh_soma, *syn_current_inh_dend;
71 
72  AurynFloat tau_ampa, tau_gaba, tau_nmda, tau_thr, tau_soma, tau_dend, tau_wsoma, tau_wdend;
73  AurynFloat A_ampa, A_nmda;
74  AurynFloat e_rest, e_inh, e_thr, e_dend, e_spk_thr;
75  AurynFloat e_reset;
76  AurynFloat Cs, gs, Cd, gd, alpha, beta, zeta, box_height, box_kernel_length, xi;
77  AurynFloat a_wdend, b_wsoma, aux_mul_wdend;
78 
79  AurynFloat mul_soma, mul_wsoma, mul_dend, mul_nmda, mul_alpha, mul_beta, mul_wdend;
80  AurynFloat scale_ampa, scale_gaba, mul_thr;
81  AurynFloat scale_wsoma;
82 
83  void init();
84  void free();
85  void precalculate_constants();
86  void integrate_membrane();
87  void integrate_linear_nmda_synapses();
88  void check_thresholds();
89 
90  public:
93 
100  virtual ~NaudGroup();
101 
103  void set_tau_mem(AurynFloat taum);
104 
107 
109  void set_tau_thr(AurynFloat tau);
110 
111  void clear();
112 
114  virtual void evolve();
115  };
116 }
117 
118 #endif /*NAUDGROUP_H_*/
119 
ExpCobaSynapse * syn_inh_dend
Definition: NaudGroup.h:92
Tries to make a smart choice.
Definition: SpikingGroup.h:51
ExpCobaSynapse * syn_inh_soma
Definition: NaudGroup.h:92
Implements an exponential conductance-based synapse model.
Definition: ExpCobaSynapse.h:48
void set_tau_mem(AurynFloat taum)
Sets the membrane time constant.
AurynFloat get_tau_mem()
Returns the membrane time constant.
virtual ~NaudGroup()
Definition: NaudGroup.cpp:176
void set_tau_thr(AurynFloat tau)
Sets the membrane time constant.
Definition: NaudGroup.cpp:255
Definition: ABSConnection.h:38
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
LinearComboSynapse * syn_exc_dend
Definition: NaudGroup.h:91
LinearComboSynapse * syn_exc_soma
Definition: NaudGroup.h:91
This file implements NaudGroup, Richard Naud&#39;s reduced two compartment model with active dendrites...
Definition: NaudGroup.h:50
NeuronID size
Stores the size of the group.
Definition: SpikingGroup.h:119
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
NaudGroup(NeuronID size, NodeDistributionMode distmode=AUTO)
Default constructor.
Definition: NaudGroup.cpp:32
virtual void evolve()
Definition: NaudGroup.cpp:243
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 clear()
Definition: NaudGroup.cpp:153
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
NodeDistributionMode
Specifies howto distribute different neurons across ranks when simulation is run in parallel...
Definition: SpikingGroup.h:50