Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
VoltageMonitor.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 VOLTAGEMONITOR_H_
27 #define VOLTAGEMONITOR_H_
28 
29 #define VOLTAGEMONITOR_PASTED_SPIKE_HEIGHT 20e-3
30 
31 #include "auryn_definitions.h"
32 #include "AurynVector.h"
33 #include "StateMonitor.h"
34 #include "System.h"
35 #include "Connection.h"
36 #include <fstream>
37 #include <iomanip>
38 
39 namespace auryn {
40 
49 {
50 private:
51  NeuronID gid;
52 
53 protected:
55  void init();
56 
57 public:
60 
61  VoltageMonitor(NeuronGroup * source, NeuronID id, string filename, AurynDouble stepsize=auryn_timestep);
62 
63  virtual ~VoltageMonitor();
64 
65  void execute();
66 };
67 
68 }
69 
70 #endif /*VOLTAGEMONITOR_H_*/
void init()
Standard initialization.
Definition: VoltageMonitor.cpp:41
virtual ~VoltageMonitor()
Definition: VoltageMonitor.cpp:37
double AurynDouble
Higher precision floating point datatype.
Definition: auryn_definitions.h:158
VoltageMonitor(NeuronGroup *source, NeuronID id, string filename, AurynDouble stepsize=auryn_timestep)
Definition: VoltageMonitor.cpp:30
Definition: ABSConnection.h:38
double auryn_timestep
Simulation timestep in seconds.
Definition: auryn_definitions.cpp:31
Records the membrane potential from one unit from the source neuron group to a file.
Definition: VoltageMonitor.h:48
void execute()
Definition: VoltageMonitor.cpp:47
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
AurynTime paste_spikes
Paste spikes switch (default = true)
Definition: VoltageMonitor.h:59
Records from an arbitray state vector of one unit from the source SpikingGroup to a file...
Definition: StateMonitor.h:40
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151