Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
TripletDecayConnection.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 TRIPLETDECAYCONNECTION_H_
27 #define TRIPLETDECAYCONNECTION_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "TripletConnection.h"
32 #include "Trace.h"
33 
34 #define TRIPLETDECAYCONNECTION_EULERUPGRADE_STEP 0.999
35 
36 namespace auryn {
37 
38 
46 {
47 
48 private:
49  AurynTime decay_timestep;
50  AurynFloat tau_decay;
51  AurynFloat mul_decay;
52  AurynWeight w_rest;
53  AurynInt decay_count;
54 
55 public:
56  TripletDecayConnection(SpikingGroup * source, NeuronGroup * destination, TransmitterType transmitter);
57 
58  TripletDecayConnection(SpikingGroup * source, NeuronGroup * destination,
59  const char * filename,
60  AurynFloat tau_hom=10,
61  AurynFloat eta=1, AurynFloat decay = 1e-3,
62  AurynFloat kappa=3., AurynWeight wrest=0., AurynWeight maxweight=1. ,
63  TransmitterType transmitter=GLUT);
64 
65  TripletDecayConnection(SpikingGroup * source, NeuronGroup * destination,
66  AurynWeight weight, AurynFloat sparseness=0.05,
67  AurynFloat tau_hom=10,
68  AurynFloat eta=1, AurynFloat decay=1e-3,
69  AurynFloat kappa=3., AurynWeight wrest=0., AurynWeight maxweight=1. ,
70  TransmitterType transmitter=GLUT);
71 
72  virtual ~TripletDecayConnection();
73  void init(AurynFloat decay, AurynWeight wrest);
74  void free();
75 
76  virtual void propagate();
77 
78 };
79 
80 }
81 
82 #endif /*TRIPLETDECAYCONNECTION_H_*/
Standard Glutamatergic (excitatory) transmission.
Definition: auryn_definitions.h:139
void init(AurynFloat decay, AurynWeight wrest)
Definition: TripletDecayConnection.cpp:30
Abstract base class of all objects producing spikes.
Definition: SpikingGroup.h:67
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
virtual ~TripletDecayConnection()
Definition: TripletDecayConnection.cpp:86
virtual void propagate()
Internally used propagate method.
Definition: TripletDecayConnection.cpp:91
Implements triplet STDP with metaplasticity as described by Pfister and Gerstner 2006.
Definition: TripletConnection.h:48
NeuronID AurynInt
Definition: auryn_definitions.h:152
Definition: ABSConnection.h:38
TripletDecayConnection(SpikingGroup *source, NeuronGroup *destination, TransmitterType transmitter)
Definition: TripletDecayConnection.cpp:51
void free()
Definition: TripletDecayConnection.cpp:46
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
Implements triplet STDP with an exponential weight decay.
Definition: TripletDecayConnection.h:45
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
NeuronID AurynTime
Defines Auryns discrete time unit of the System clock. Change to AurynLong if 120h of simtime are not...
Definition: auryn_definitions.h:155