Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
SymmetricSTDPConnection.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 SYMMETRICSTDPCONNECTION_H_
27 #define SYMMETRICSTDPCONNECTION_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "DuplexConnection.h"
32 #include "Trace.h"
33 #include "LinearTrace.h"
34 
35 namespace auryn {
36 
37 
45 {
46 
47 public:
51 
54 
55  inline AurynWeight dw_pre(NeuronID post);
56  inline AurynWeight dw_post(NeuronID pre);
57 
58  inline void propagate_forward();
59  inline void propagate_backward();
60 
62 
76  SymmetricSTDPConnection(SpikingGroup * source, NeuronGroup * destination,
77  AurynWeight weight, AurynFloat sparseness=0.05,
78  AurynFloat eta=1e-3, AurynFloat kappa=5., AurynFloat tau_stdp=20e-3,
79  AurynWeight maxweight=10. , TransmitterType transmitter=GABA, string name="SymmetricSTDPConnection");
80 
93  SymmetricSTDPConnection(SpikingGroup * source, NeuronGroup * destination,
94  const char * filename,
95  AurynFloat eta=1e-3, AurynFloat kappa=5., AurynFloat tau_stdp=20e-3,
96  AurynWeight maxweight=10 , TransmitterType transmitter=GABA);
97 
98  virtual ~SymmetricSTDPConnection();
99  void init(AurynFloat eta, AurynFloat kappa, AurynFloat tau_stdp, AurynWeight maxweight);
100  void free();
101 
102  virtual void propagate();
103 
104 };
105 
106 }
107 
108 #endif /*SYMMETRICSTDPCONNECTION_H_*/
AurynFloat kappa_fudge
Definition: SymmetricSTDPConnection.h:50
Implements a symmetric STDP window with an optional presynaptic offset as used for inhibitory plastic...
Definition: SymmetricSTDPConnection.h:44
Abstract base class of all objects producing spikes.
Definition: SpikingGroup.h:67
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
Abstract base class of synaptic traces.
Definition: Trace.h:36
void propagate_backward()
Definition: SymmetricSTDPConnection.cpp:117
void free()
Definition: SymmetricSTDPConnection.cpp:50
AurynWeight dw_post(NeuronID pre)
Definition: SymmetricSTDPConnection.cpp:86
Definition: ABSConnection.h:38
Trace * tr_pre
Definition: SymmetricSTDPConnection.h:52
TransmitterType
Specifies the different transmitter types that Auryn knows.
Definition: auryn_definitions.h:138
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
AurynWeight dw_pre(NeuronID post)
Definition: SymmetricSTDPConnection.cpp:77
SymmetricSTDPConnection(SpikingGroup *source, NeuronGroup *destination, AurynWeight weight, AurynFloat sparseness=0.05, AurynFloat eta=1e-3, AurynFloat kappa=5., AurynFloat tau_stdp=20e-3, AurynWeight maxweight=10., TransmitterType transmitter=GABA, string name="SymmetricSTDPConnection")
Definition: SymmetricSTDPConnection.cpp:63
Trace * tr_post
Definition: SymmetricSTDPConnection.h:53
bool stdp_active
Definition: SymmetricSTDPConnection.h:61
Standard Gabaergic (inhibitory) transmission.
Definition: auryn_definitions.h:140
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
virtual ~SymmetricSTDPConnection()
Definition: SymmetricSTDPConnection.cpp:72
void init(AurynFloat eta, AurynFloat kappa, AurynFloat tau_stdp, AurynWeight maxweight)
Definition: SymmetricSTDPConnection.cpp:30
void propagate_forward()
Definition: SymmetricSTDPConnection.cpp:95
Duplex connection is the base class of most plastic connections.
Definition: DuplexConnection.h:54
AurynFloat target
Definition: SymmetricSTDPConnection.h:49
virtual void propagate()
Internally used propagate method.
Definition: SymmetricSTDPConnection.cpp:138
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
AurynFloat learning_rate
Definition: SymmetricSTDPConnection.h:48