Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
IFGroup.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 IFGROUP_H_
27 #define IFGROUP_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "NeuronGroup.h"
32 #include "System.h"
33 
34 namespace auryn {
35 
47  class IFGroup : public NeuronGroup
48  {
49  private:
50  AurynStateVector * t_leak;
51  AurynStateVector * t_exc;
52  AurynStateVector * t_inh;
53  AurynFloat scale_ampa,scale_gaba, scale_thr;
54  AurynFloat tau_ampa,tau_gaba,tau_nmda;
55  AurynFloat A_ampa,A_nmda;
56  AurynFloat thr_rest,tau_mem,tau_thr,dthr;
57  AurynFloat mul_nmda;
58  void init();
59  void free();
60  void calculate_scale_constants();
61  void integrate_membrane();
62  void integrate_linear_nmda_synapses();
63  void check_thresholds();
64  public:
68 
74  virtual ~IFGroup();
76  void set_tau_mem(AurynFloat taum);
79 
81  void set_tau_ampa(AurynFloat tau);
82 
85 
87  void set_tau_gaba(AurynFloat tau);
88 
91 
95  void set_tau_nmda(AurynFloat tau);
96 
100  void set_tau_thr(AurynFloat tau);
101 
105 
109  void set_ampa_nmda_ratio(AurynFloat ratio);
110 
115 
116  void clear();
117 
119  virtual void evolve();
120  };
121 }
122 
123 #endif /*IFGROUP_H_*/
124 
void set_tau_gaba(AurynFloat tau)
Sets the exponential decay time constant of the GABA conductance (default=10ms).
Definition: IFGroup.cpp:176
AurynFloat get_tau_nmda()
Definition: IFGroup.cpp:204
AurynFloat get_tau_mem()
Returns the membrane time constant.
Definition: IFGroup.cpp:160
Tries to make a smart choice.
Definition: SpikingGroup.h:51
void clear()
Definition: IFGroup.cpp:71
void set_tau_nmda(AurynFloat tau)
Sets the exponential decay time constant of the NMDA conductance (default=100ms). ...
Definition: IFGroup.cpp:187
AurynFloat u_reset
Reset voltage.
Definition: IFGroup.h:65
IFGroup(NeuronID size, NodeDistributionMode distmode=AUTO)
Default constructor.
Definition: IFGroup.cpp:30
AurynFloat get_tau_ampa()
Returns the exponential decay time constant of the AMPA conductance.
Definition: IFGroup.cpp:171
void set_tau_ampa(AurynFloat tau)
Sets the exponential decay time constant of the AMPA conductance (default=5ms).
Definition: IFGroup.cpp:165
void set_ampa_nmda_ratio(AurynFloat ratio)
Set ratio between ampa/nmda contribution to excitatory conductance.
Definition: IFGroup.cpp:209
Definition: ABSConnection.h:38
void set_tau_mem(AurynFloat taum)
Sets the membrane time constant.
Definition: IFGroup.cpp:154
virtual void evolve()
Definition: IFGroup.cpp:146
virtual ~IFGroup()
Definition: IFGroup.cpp:84
AurynFloat u_inh_rev
Inhibitory reversal potential.
Definition: IFGroup.h:67
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
void set_nmda_ampa_current_ampl_ratio(AurynFloat ratio)
Sets nmda-ampa amplitude ratio.
Definition: IFGroup.cpp:215
AurynFloat get_tau_gaba()
Returns the exponential decay time constant of the GABA conductance.
Definition: IFGroup.cpp:182
NeuronID size
Stores the size of the group.
Definition: SpikingGroup.h:119
AurynFloat u_rest
Resting potential.
Definition: IFGroup.h:66
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
Default AurynVectorFloat class for performance computation.
Definition: AurynVector.h:796
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
Implements the standard integrate and file model used in Auryn.
Definition: IFGroup.h:47
void set_tau_thr(AurynFloat tau)
Sets the exponential decay time constant of the threshold (default=5).
Definition: IFGroup.cpp:197
NodeDistributionMode
Specifies howto distribute different neurons across ranks when simulation is run in parallel...
Definition: SpikingGroup.h:50