Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
RateMonitor.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 RATEMONITOR_H_
27 #define RATEMONITOR_H_
28 
29 #include <fstream>
30 #include <iomanip>
31 
32 #include "auryn_definitions.h"
33 #include "AurynVector.h"
34 #include "Monitor.h"
35 #include "System.h"
36 #include "SpikingGroup.h"
37 #include "Trace.h"
38 
39 namespace auryn {
40 
49 class RateMonitor : protected Monitor
50 {
51 private:
53  AurynTime ssize;
54 
56  AurynDouble tau_filter;
57 
58  Trace * tr_post;
59 
60 protected:
63 
65  void init(SpikingGroup * source, string filename, AurynFloat samplinginterval);
66 
67 public:
68 
74  RateMonitor(SpikingGroup * source, string filename, AurynFloat samplinginterval=1);
75 
77  virtual ~RateMonitor();
78 
80  void execute();
81 };
82 
83 }
84 
85 #endif /*RATEMONITOR_H_*/
Abstract base class for all Monitor objects.
Definition: Monitor.h:47
void execute()
Definition: RateMonitor.cpp:58
Abstract base class of all objects producing spikes.
Definition: SpikingGroup.h:67
double AurynDouble
Higher precision floating point datatype.
Definition: auryn_definitions.h:158
virtual ~RateMonitor()
Definition: RateMonitor.cpp:35
RateMonitor(SpikingGroup *source, string filename, AurynFloat samplinginterval=1)
Definition: RateMonitor.cpp:30
Monitor class to record neural firing rates.
Definition: RateMonitor.h:49
Abstract base class of synaptic traces.
Definition: Trace.h:36
void init()
Standard initializer to be called by the constructor.
Definition: Device.cpp:32
Definition: ABSConnection.h:38
SpikingGroup * src
Definition: RateMonitor.h:62
float AurynFloat
Low precision floating point datatype.
Definition: auryn_definitions.h:157
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