Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
MovingBumpGroup.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 MOVINGBUMPGROUP_H_
27 #define MOVINGBUMPGROUP_H_
28 
29 #include "auryn_definitions.h"
30 #include "AurynVector.h"
31 #include "System.h"
32 #include "SpikingGroup.h"
33 #include "ProfilePoissonGroup.h"
34 
35 #include <boost/random/mersenne_twister.hpp>
36 #include <boost/random/uniform_int.hpp>
37 #include <boost/random/variate_generator.hpp>
38 #include <boost/random/exponential_distribution.hpp>
39 
40 namespace auryn {
41 
49 {
50 private:
51  static boost::mt19937 order_gen;
52 
54  AurynTime stimulus_duration;
55 
57  AurynTime stimulus_interval;
58 
60  NeuronID profile_width;
61 
63  AurynFloat floor_;
64 
66  std::ofstream tiserfile;
67 
69  AurynTime next_event;
70 
72  bool stimulus_active;
73 
74 
75  void init ( AurynFloat duration, AurynFloat width, string outputfile );
76 
77 public:
78 
80  double pos_min;
82  double pos_max;
83 
92  AurynFloat duration,
93  AurynFloat width,
94  AurynDouble rate=5.0,
95  string tiserfile = "stimulus.dat" );
96 
101  void set_floor(AurynFloat floor);
102 
107  void set_width(NeuronID width);
108 
115  void set_duration(AurynFloat duration);
116 
121  void set_interval(AurynFloat interval);
122 
123  virtual ~MovingBumpGroup();
124  virtual void evolve();
125 };
126 
127 }
128 
129 #endif /*MOVINGBUMPGROUP_H_*/
double pos_max
Maximum relative position in group for center of bump (default = 1)
Definition: MovingBumpGroup.h:82
virtual void evolve()
Definition: MovingBumpGroup.cpp:107
double AurynDouble
Higher precision floating point datatype.
Definition: auryn_definitions.h:158
int n
Definition: mkpat.py:5
void set_width(NeuronID width)
Sets width of Gaussian rate profile.
Definition: MovingBumpGroup.cpp:91
MovingBumpGroup(NeuronID n, AurynFloat duration, AurynFloat width, AurynDouble rate=5.0, string tiserfile="stimulus.dat")
Default constructor.
Definition: MovingBumpGroup.cpp:70
Definition: ABSConnection.h:38
void set_duration(AurynFloat duration)
Sets stimulus duration.
Definition: MovingBumpGroup.cpp:96
A special PoissonGroup that generates jumping Gaussian bumps in the firing rate profile.
Definition: MovingBumpGroup.h:48
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
void set_floor(AurynFloat floor)
Sets firing rate floor.
Definition: MovingBumpGroup.cpp:86
virtual ~MovingBumpGroup()
Definition: MovingBumpGroup.cpp:81
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
void set_interval(AurynFloat interval)
Sets inter-stimulus interval.
Definition: MovingBumpGroup.cpp:101
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
A SpikingGroup that creates poissonian spikes with a given rate and spatial profile.
Definition: ProfilePoissonGroup.h:54
double pos_min
Minimal relative position in group for center of bump (default = 0)
Definition: MovingBumpGroup.h:80