Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
ABSConnection.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 ABSCONNECTION_H_
27 #define ABSCONNECTION_H_
28 
29 #define ABS_VOLTAGE_CURVE_SIZE 100
30 #define ABS_VOLTAGE_CURVE_MIN -80e-3
31 #define ABS_VOLTAGE_CURVE_MAX -40e-3
32 
33 #include "auryn_definitions.h"
34 #include "AurynVector.h"
35 #include "DuplexConnection.h"
36 #include "EulerTrace.h"
37 
38 namespace auryn {
39 
40 
42 {
43 
44 protected:
47 
48  inline AurynWeight dw_fwd(NeuronID post);
49  inline AurynWeight dw_bkw(NeuronID pre);
50  virtual AurynFloat etamod(NeuronID post);
51 
52 protected:
53 
54  void propagate_forward();
55  void propagate_backward();
56 
57 
58 public:
60 
62 
63  ABSConnection(SpikingGroup * source, NeuronGroup * destination,
64  const char * filename,
65  AurynWeight maxweight=1. , TransmitterType transmitter=GLUT);
66 
67  ABSConnection(SpikingGroup * source, NeuronGroup * destination,
68  AurynWeight weight, AurynFloat sparseness=0.05,
69  AurynWeight maxweight=1. , TransmitterType transmitter=GLUT, std::string name="ABSConnection");
70  virtual ~ABSConnection();
71  void init(AurynWeight maxw);
72  void free();
73 
74  void set_default_curve(double fp_low=-60e-3, double fp_middle=-55e-3, double fp_high=-50e-3, double scale=100);
75  void load_curve_from_file( const char * filename , double scale = 1. );
76 
77  virtual void propagate();
78 
79 };
80 
81 }
82 
83 #endif /*ABSCONNECTION_H_*/
void free()
Definition: ABSConnection.cpp:50
Standard Glutamatergic (excitatory) transmission.
Definition: auryn_definitions.h:139
Solves a set of identical linear differential equations with the Euler method. It is used to implemen...
Definition: EulerTrace.h:43
AurynWeight dw_fwd(NeuronID post)
Definition: ABSConnection.cpp:82
void propagate_forward()
Definition: ABSConnection.cpp:101
Definition: ABSConnection.h:41
Abstract base class of all objects producing spikes.
Definition: SpikingGroup.h:67
AurynFloat AurynWeight
Unit of synaptic weights.
Definition: auryn_definitions.h:159
AurynWeight dw_bkw(NeuronID pre)
Definition: ABSConnection.cpp:96
void propagate_backward()
Definition: ABSConnection.cpp:123
virtual void propagate()
Internally used propagate method.
Definition: ABSConnection.cpp:127
EulerTrace * tr_post
Definition: ABSConnection.h:46
Definition: ABSConnection.h:38
AurynFloat * voltage_curve_post
Definition: ABSConnection.h:59
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
virtual AurynFloat etamod(NeuronID post)
Definition: ABSConnection.cpp:77
bool stdp_active
Definition: ABSConnection.h:61
void load_curve_from_file(const char *filename, double scale=1.)
Definition: ABSConnection.cpp:134
AurynFloat tau_post
Definition: ABSConnection.h:45
Abstract base class for all neuron groups.
Definition: NeuronGroup.h:45
virtual ~ABSConnection()
Definition: ABSConnection.cpp:72
Duplex connection is the base class of most plastic connections.
Definition: DuplexConnection.h:54
void set_default_curve(double fp_low=-60e-3, double fp_middle=-55e-3, double fp_high=-50e-3, double scale=100)
Definition: ABSConnection.cpp:175
void init(AurynWeight maxw)
Definition: ABSConnection.cpp:30
std::string string
Standard library string type which is imported into Auryn namespace.
Definition: auryn_definitions.h:156
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
ABSConnection(SpikingGroup *source, NeuronGroup *destination, const char *filename, AurynWeight maxweight=1., TransmitterType transmitter=GLUT)
Definition: ABSConnection.cpp:56