NEST main@f146f75
Loading...
Searching...
No Matches
archiving_node.h
Go to the documentation of this file.
1/*
2 * archiving_node.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef ARCHIVING_NODE_H
24#define ARCHIVING_NODE_H
25
26// C++ includes:
27#include <algorithm>
28#include <deque>
29
30// Includes from nestkernel:
32#include "histentry.h"
34#include "nest_time.h"
35#include "nest_types.h"
36#include "node.h"
37
38
39#define DEBUG_ARCHIVER 1
40
41namespace nest
42{
43
49{
50public:
52
54
61 double get_K_value( double t ) override;
62
73 void get_K_values( double t, double& Kminus, double& nearest_neighbor_Kminus, double& Kminus_triplet ) override;
74
78 double get_K_triplet_value( const std::deque< histentry >::iterator& iter );
79
83 void get_history( double t1,
84 double t2,
85 std::deque< histentry >::iterator* start,
86 std::deque< histentry >::iterator* finish ) override;
87
94 void register_stdp_connection( const double t_first_read,
95 const double dendritic_delay,
96 const double axonal_delay ) override;
97
98 void get_status( Dictionary& d ) const override;
99 void set_status( const Dictionary& d ) override;
100
101protected:
105 void set_spiketime( Time const& t_sp, double offset = 0.0, size_t multiplicity = 1 );
106
110 inline double get_spiketime_ms() const;
111
115 void clear_history();
116
124
125private:
126 // sum exp(-(t-ti)/tau_minus)
127 double Kminus_;
128
129 // sum exp(-(t-ti)/tau_minus_triplet)
131
134
135 // time constant for triplet low pass filtering of "post" spike train
138
140 double trace_;
141
143
144 // spiking history needed by stdp synapses
145 std::deque< histentry > history_;
146};
147
148inline double
150{
151 return last_spike_;
152}
153
154} // of namespace
155#endif
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
double get_K_triplet_value(const std::deque< histentry >::iterator &iter)
Return the triplet Kminus value for the associated iterator.
double tau_minus_inv_
Definition archiving_node.h:133
void set_spiketime(Time const &t_sp, double offset=0.0, size_t multiplicity=1)
Record spike history.
Definition archiving_node.cpp:185
void get_history(double t1, double t2, std::deque< histentry >::iterator *start, std::deque< histentry >::iterator *finish) override
Return the spike times (in steps) of spikes which occurred in the range [t1,t2].
Definition archiving_node.cpp:157
std::deque< histentry > history_
Definition archiving_node.h:145
double tau_minus_
Definition archiving_node.h:132
void clear_history()
Clear spike history.
Definition archiving_node.cpp:298
double last_spike_
Definition archiving_node.h:142
ArchivingNode()
Definition archiving_node.cpp:37
double max_delay_
Definition archiving_node.h:139
double trace_
Definition archiving_node.h:140
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition archiving_node.cpp:249
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:265
void get_K_values(double t, double &Kminus, double &nearest_neighbor_Kminus, double &Kminus_triplet) override
Write the different STDP K values at time t (in ms) to the provided locations.
Definition archiving_node.cpp:122
double tau_minus_triplet_
Definition archiving_node.h:136
double get_K_value(double t) override
Return the Kminus (synaptic trace) value at time t (given in ms).
Definition archiving_node.cpp:94
double Kminus_
Definition archiving_node.h:127
size_t n_incoming_
Number of incoming connections from STDP connectors.
Definition archiving_node.h:123
double Kminus_triplet_
Definition archiving_node.h:130
double tau_minus_triplet_inv_
Definition archiving_node.h:137
void register_stdp_connection(const double t_first_read, const double dendritic_delay, const double axonal_delay) override
Register a new incoming STDP connection.
Definition archiving_node.cpp:70
double get_spiketime_ms() const
Return most recent spike time in ms.
Definition archiving_node.h:149
AxonalDelayArchivingNode()
Definition axonal_delay_archiving_node.cpp:31
IgnoreAndSpikeMechanism()
Default constructor.
Definition ignore_and_spike_mechanism.cpp:35
Definition nest_time.h:135
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
Declarations for base class Node.