Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
STPConnection.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 STPCONNECTION_H_
27 #define STPCONNECTION_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "SparseConnection.h"
32 
33 
34 namespace auryn {
35 
36 
37 
49 {
50 private:
51  // STP parameters (maybe this should all move to a container)
52  auryn_vector_float * state_x;
53  auryn_vector_float * state_u;
54  auryn_vector_float * state_temp;
55 
56  void init();
57  void free();
58 
59 public:
60  double tau_d;
61  double tau_f;
62  double Ujump;
63 
67  STPConnection(const char * filename);
68 
73  STPConnection(NeuronID rows, NeuronID cols);
74 
80  STPConnection(SpikingGroup * source, NeuronGroup * destination, TransmitterType transmitter=GLUT);
81 
89  STPConnection(SpikingGroup * source, NeuronGroup * destination, const char * filename , TransmitterType transmitter=GLUT);
90 
99  STPConnection(SpikingGroup * source, NeuronGroup * destination, AurynWeight weight, AurynFloat sparseness=0.05, TransmitterType transmitter=GLUT, string name="STPConnection");
100 
102  void set_tau_d(AurynFloat taud);
103 
105  void set_tau_f(AurynFloat tauf);
106 
108  void set_ujump(AurynFloat r);
109 
111  void clear();
112 
114  void clone_parameters(STPConnection * con);
115 
117  virtual ~STPConnection();
118 
120  virtual void propagate();
121 
123  void push_attributes();
124 
126  void evolve();
127 
128 };
129 
130 }
131 
132 #endif /*STPCONNECTION_H_*/
void set_tau_d(AurynFloat taud)
Definition: STPConnection.cpp:180
double tau_d
Definition: STPConnection.h:60
r
Definition: mkpat.py:9
void push_attributes()
Definition: STPConnection.cpp:102
Standard Glutamatergic (excitatory) transmission.
Definition: auryn_definitions.h:139
double Ujump
Definition: STPConnection.h:62
void set_tau_f(AurynFloat tauf)
Definition: STPConnection.cpp:176
void clone_parameters(STPConnection *con)
Clone parameters.
Definition: STPConnection.cpp:197
Abstract base class of all objects producing spikes.
Definition: SpikingGroup.h:67
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
void set_ujump(AurynFloat r)
Definition: STPConnection.cpp:184
The base class to create sparse random connections.
Definition: SparseConnection.h:66
Definition: ABSConnection.h:38
void evolve()
Definition: STPConnection.cpp:132
double tau_f
Definition: STPConnection.h:61
This class implements short term plasticity according to the Tsodyks-Markram synapse.
Definition: STPConnection.h:48
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
STPConnection(const char *filename)
Definition: STPConnection.cpp:51
virtual void propagate()
Definition: STPConnection.cpp:147
void clear()
Clear.
Definition: STPConnection.cpp:188
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
Default AurynVectorFloat class for performance computation.
Definition: AurynVector.h:796
virtual ~STPConnection()
Definition: STPConnection.cpp:97
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151