NEST main@f146f75
Loading...
Searching...
No Matches
stdp_dopamine_synapse.h
Go to the documentation of this file.
1/*
2 * stdp_dopamine_synapse.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 STDP_DOPAMINE_SYNAPSE_H
24#define STDP_DOPAMINE_SYNAPSE_H
25
26// Includes from libnestutil:
27#include "numerics.h"
28
29// Includes from models:
30#include "volume_transmitter.h"
31
32// Includes from nestkernel:
33#include "connection.h"
34#include "spikecounter.h"
35
36namespace nest
37{
38
39/* BeginUserDocs: synapse, chemical, functional, stdp, 3-factor
40
41Short description
42+++++++++++++++++
43
44Synapse type for dopamine-modulated spike-timing dependent plasticity
45
46Description
47+++++++++++
48
49``stdp_dopamine_synapse`` is a connection to create synapses with
50dopamine-modulated spike-timing dependent plasticity (used as a
51benchmark model in :footcite:p:`Potjans2010`, based on :footcite:p:`Izhikevich2007`). The dopaminergic signal is a
52low-pass filtered version of the spike rate of a user-specific pool
53of neurons. The spikes emitted by the pool of dopamine neurons are
54delivered to the synapse via the assigned volume transmitter. The
55dopaminergic dynamics is calculated in the synapse itself.
56
57.. warning::
58
59 This synaptic plasticity rule does not take
60 :ref:`precise spike timing <sim_precise_spike_times>` into
61 account. When calculating the weight update, the precise spike time part
62 of the timestamp is ignored.
63
64Parameters
65++++++++++
66
67=================== =========================== ======================================================
68**Common properties**
69------------------------------------------------------------------------------------------------------
70 volume_transmitter :py:class:`.NodeCollection` :doc:`Volume transmitter </models/volume_transmitter>`
71 collecting the spikes from the pool of dopamine
72 releasing neurons and transmitting the spikes to the
73 synapse.
74 A_plus real Multiplier applied to weight changes caused by
75 pre-before-post spike pairings. If b (dopamine
76 baseline concentration) is zero, then A_plus
77 is simply the multiplier for facilitation (as in the
78 stdp_synapse model). If b is not zero, then A_plus
79 will be the multiplier for facilitation only if n - b
80 is positive, where n is the instantaneous dopamine
81 concentration in the volume transmitter. If n - b is
82 negative, A_plus will be the multiplier for
83 depression.
84 A_minus real Multiplier applied to weight changes caused by
85 post-before-pre spike pairings. If b (dopamine
86 baseline concentration) is zero, then A_minus
87 is simply the multiplier for depression (as in the
88 stdp_synapse model). If b is not zero, then A_minus
89 will be the multiplier for depression only if n - b
90 is positive, where n is the instantaneous dopamine
91 concentration in the volume transmitter. If n - b is
92 negative, A_minus will be the multiplier for
93 facilitation.
94 tau_plus ms STDP time constant for weight changes caused by
95 pre-before-post spike pairings.
96 tau_c ms Time constant of eligibility trace
97 tau_n ms Time constant of dopaminergic trace
98 b real Dopaminergic baseline concentration
99 Wmin real Minimal synaptic weight
100 Wmax real Maximal synaptic weight
101=================== =========================== ======================================================
102
103The common properties can only be set by :py:func:`.SetDefaults` and apply
104to all instances of the synapse model.
105
106=== ====== =====================================
107**Individual properties**
108-------------------------------------------------
109 c real Eligibility trace
110 n real Neuromodulator concentration
111=== ====== =====================================
112
113References
114++++++++++
115
116.. footbibliography::
117
118Transmits
119+++++++++
120
121SpikeEvent
122
123See also
124++++++++
125
126volume_transmitter
127
128Examples using this model
129+++++++++++++++++++++++++
130
131.. listexamples:: stdp_dopamine_synapse
132
133EndUserDocs */
134
140{
141public:
147
151 void get_status( Dictionary& d ) const;
152
156 void set_status( const Dictionary& d, ConnectorModel& cm );
157
158 long get_vt_node_id() const;
159
161 double A_plus_;
162 double A_minus_;
163 double tau_plus_;
164 double tau_c_;
165 double tau_n_;
166 double b_;
167 double Wmin_;
168 double Wmax_;
169};
170
171inline long
173{
175 {
176 return volume_transmitter_->get_node_id();
177 }
178 else
179 {
180 return -1;
181 }
182}
183
188void register_stdp_dopamine_synapse( const std::string& name );
189
190template < typename targetidentifierT >
191class stdp_dopamine_synapse : public Connection< targetidentifierT, TotalDelay >
192{
193
194public:
197
201
207
214
215 // Explicitly declare all methods inherited from the dependent base
216 // ConnectionBase. This avoids explicit name prefixes in all places these
217 // functions are used. Since ConnectionBase depends on the template parameter,
218 // they are not automatically found in the base class.
223
227 void get_status( Dictionary& d ) const;
228
232 void set_status( const Dictionary& d, ConnectorModel& cm );
233
241 void check_synapse_params( const Dictionary& d ) const;
242
247 bool send( Event& e, size_t t, const STDPDopaCommonProperties& cp );
248
249 void trigger_update_weight( size_t t,
250 const std::vector< spikecounter >& dopa_spikes,
251 double t_trig,
252 const STDPDopaCommonProperties& cp );
253
255 {
256 public:
257 // Ensure proper overriding of overloaded virtual functions.
258 // Return values from functions are ignored.
260 size_t
261 handles_test_event( SpikeEvent&, size_t ) override
262 {
263 return invalid_port;
264 }
265 };
266
267 /*
268 * This function calls check_connection on the sender and checks if the
269 * receiver accepts the event type and receptor type requested by the sender.
270 * Node::check_connection() will either confirm the receiver port by returning
271 * true or false if the connection should be ignored.
272 * We have to override the base class' implementation, since for STDP
273 * connections we have to call register_stdp_pl_connection on the target
274 * neuron to inform the Archiver to collect spikes for this connection.
275 * Further, the STDP dopamine synapse requires a volume transmitter to be set
276 * before any simulation is performed. Checking this satisfies ticket #926.
277 *
278 * \param s The source node
279 * \param r The target node
280 * \param receptor_type The ID of the requested receptor type
281 */
282 void
284 Node& t,
285 const size_t receptor_type,
286 const synindex syn_id,
287 const CommonPropertiesType& cp )
288 {
289 if ( not cp.volume_transmitter_ )
290 {
291 throw BadProperty( "No volume transmitter has been assigned to the dopamine synapse." );
292 }
293
294 ConnTestDummyNode dummy_target;
295 ConnectionBase::check_connection_( dummy_target, s, t, syn_id, receptor_type );
296
298 }
299
300 void
301 set_weight( double w )
302 {
303 weight_ = w;
304 }
305
306private:
307 // update dopamine trace from last to current dopamine spike and increment
308 // index
309 void update_dopamine_( const std::vector< spikecounter >& dopa_spikes, const STDPDopaCommonProperties& cp );
310
311 void update_weight_( double c0, double n0, double minus_dt, const STDPDopaCommonProperties& cp );
312
313 void process_dopa_spikes_( const std::vector< spikecounter >& dopa_spikes,
314 double t0,
315 double t1,
316 const STDPDopaCommonProperties& cp );
317 void facilitate_( double kplus, const STDPDopaCommonProperties& cp );
318 void depress_( double kminus, const STDPDopaCommonProperties& cp );
319
320 // data members of each connection
321 double weight_;
322 double Kplus_;
323 double c_;
324 double n_;
325
326 // dopa_spikes_idx_ refers to the dopamine spike that has just been processes
327 // after trigger_update_weight a pseudo dopamine spike at t_trig is stored at
328 // index 0 and dopa_spike_idx_ = 0
330
331 // time of last update, which is either time of last presyn. spike or
332 // time-driven update
334
336};
337
338template < typename targetidentifierT >
340
341//
342// Implementation of class stdp_dopamine_synapse.
343//
344
345template < typename targetidentifierT >
348 , weight_( 1.0 )
349 , Kplus_( 0.0 )
350 , c_( 0.0 )
351 , n_( 0.0 )
352 , dopa_spikes_idx_( 0 )
353 , t_last_update_( 0.0 )
354 , t_lastspike_( 0.0 )
355{
356}
357
358template < typename targetidentifierT >
359void
361{
362
363 // base class properties, different for individual synapse
365 d[ names::weight ] = weight_;
366
367 // own properties, different for individual synapse
368 d[ names::Kplus ] = Kplus_;
369 d[ names::c ] = c_;
370 d[ names::n ] = n_;
371}
372
373template < typename targetidentifierT >
374void
376{
377 // base class properties
379 d.update_value( names::weight, weight_ );
380
381 d.update_value( names::c, c_ );
382 d.update_value( names::n, n_ );
383
384 d.update_value( names::Kplus, Kplus_ );
385 if ( Kplus_ < 0 )
386 {
387 throw BadProperty( "Kplus must be non-negative." );
388 }
389}
390
391template < typename targetidentifierT >
392void
394{
395 // Setting of parameter c and n not thread safe.
396 if ( kernel().vp_manager.get_num_threads() > 1 )
397 {
398 if ( syn_spec.known( names::c ) )
399 {
400 throw NotImplemented(
401 "For multi-threading Connect doesn't support the setting "
402 "of parameter c in stdp_dopamine_synapse. "
403 "Use SetDefaults() or CopyModel()." );
404 }
405 if ( syn_spec.known( names::n ) )
406 {
407 throw NotImplemented(
408 "For multi-threading Connect doesn't support the setting "
409 "of parameter n in stdp_dopamine_synapse. "
410 "Use SetDefaults() or CopyModel()." );
411 }
412 }
413}
414
415template < typename targetidentifierT >
416inline void
417stdp_dopamine_synapse< targetidentifierT >::update_dopamine_( const std::vector< spikecounter >& dopa_spikes,
418 const STDPDopaCommonProperties& cp )
419{
420 double minus_dt = dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - dopa_spikes[ dopa_spikes_idx_ + 1 ].spike_time_;
422 n_ = n_ * std::exp( minus_dt / cp.tau_n_ ) + dopa_spikes[ dopa_spikes_idx_ ].multiplicity_ / cp.tau_n_;
423}
424
425template < typename targetidentifierT >
426inline void
428 double n0,
429 double minus_dt,
430 const STDPDopaCommonProperties& cp )
431{
432 const double taus_ = ( cp.tau_c_ + cp.tau_n_ ) / ( cp.tau_c_ * cp.tau_n_ );
434 - c0
435 * ( n0 / taus_ * numerics::expm1( taus_ * minus_dt )
436 - cp.b_ * cp.tau_c_ * numerics::expm1( minus_dt / cp.tau_c_ ) );
437
438 if ( weight_ < cp.Wmin_ )
439 {
440 weight_ = cp.Wmin_;
441 }
442 if ( weight_ > cp.Wmax_ )
443 {
444 weight_ = cp.Wmax_;
445 }
446}
447
448template < typename targetidentifierT >
449inline void
450stdp_dopamine_synapse< targetidentifierT >::process_dopa_spikes_( const std::vector< spikecounter >& dopa_spikes,
451 double t0,
452 double t1,
453 const STDPDopaCommonProperties& cp )
454{
455 // process dopa spikes in (t0, t1]
456 // propagate weight from t0 to t1
457 if ( ( dopa_spikes.size() > dopa_spikes_idx_ + 1 )
458 and ( t1 - dopa_spikes[ dopa_spikes_idx_ + 1 ].spike_time_ > -1.0 * kernel().connection_manager.get_stdp_eps() ) )
459 {
460 // there is at least 1 dopa spike in (t0, t1]
461 // propagate weight up to first dopa spike and update dopamine trace
462 // weight and eligibility c are at time t0 but dopamine trace n is at time
463 // of last dopa spike
464 double n0 =
465 n_ * std::exp( ( dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - t0 ) / cp.tau_n_ ); // dopamine trace n at time t0
466 update_weight_( c_, n0, t0 - dopa_spikes[ dopa_spikes_idx_ + 1 ].spike_time_, cp );
467 update_dopamine_( dopa_spikes, cp );
468
469 // process remaining dopa spikes in (t0, t1]
470 double cd;
471 while ( ( dopa_spikes.size() > dopa_spikes_idx_ + 1 )
472 and ( t1 - dopa_spikes[ dopa_spikes_idx_ + 1 ].spike_time_ > -1.0 * kernel().connection_manager.get_stdp_eps() ) )
473 {
474 // propagate weight up to next dopa spike and update dopamine trace
475 // weight and dopamine trace n are at time of last dopa spike td but
476 // eligibility c is at time
477 // t0
478 cd = c_
479 * std::exp( ( t0 - dopa_spikes[ dopa_spikes_idx_ ].spike_time_ ) / cp.tau_c_ ); // eligibility c at time of td
481 cd, n_, dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - dopa_spikes[ dopa_spikes_idx_ + 1 ].spike_time_, cp );
482 update_dopamine_( dopa_spikes, cp );
483 }
484
485 // propagate weight up to t1
486 // weight and dopamine trace n are at time of last dopa spike td but
487 // eligibility c is at time t0
488 cd = c_ * std::exp( ( t0 - dopa_spikes[ dopa_spikes_idx_ ].spike_time_ ) / cp.tau_c_ ); // eligibility c at time td
489 update_weight_( cd, n_, dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - t1, cp );
490 }
491 else
492 {
493 // no dopamine spikes in (t0, t1]
494 // weight and eligibility c are at time t0 but dopamine trace n is at time
495 // of last dopa spike
496 double n0 =
497 n_ * std::exp( ( dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - t0 ) / cp.tau_n_ ); // dopamine trace n at time t0
498 update_weight_( c_, n0, t0 - t1, cp );
499 }
500
501 // update eligibility trace c for interval (t0, t1]
502 c_ = c_ * std::exp( ( t0 - t1 ) / cp.tau_c_ );
503}
504
505template < typename targetidentifierT >
506inline void
511
512template < typename targetidentifierT >
513inline void
515{
516 c_ -= cp.A_minus_ * kminus;
517}
518
524template < typename targetidentifierT >
525inline bool
527{
528 Node* target = get_target( t );
529
530 // purely dendritic delay
531 double dendritic_delay = get_delay_ms();
532
533 double t_spike = e.get_stamp().get_ms();
534
535 // get history of dopamine spikes
536 const std::vector< spikecounter >& dopa_spikes = cp.volume_transmitter_->deliver_spikes();
537
538 // get spike history in relevant range (t_last_update, t_spike] from
539 // postsynaptic neuron
540 std::deque< histentry >::iterator start;
541 std::deque< histentry >::iterator finish;
542 target->get_history( t_last_update_ - dendritic_delay, t_spike - dendritic_delay, &start, &finish );
543
544 // facilitation due to postsynaptic spikes since last update
545 double t0 = t_last_update_;
546 double minus_dt;
547 while ( start != finish )
548 {
549 process_dopa_spikes_( dopa_spikes, t0, start->t_ + dendritic_delay, cp );
550 t0 = start->t_ + dendritic_delay;
551 minus_dt = t_last_update_ - t0;
552 // facilitate only in case of post- after presyn. spike
553 // skip facilitation if pre- and postsyn. spike occur at the same time
554 if ( t_spike - start->t_ > kernel().connection_manager.get_stdp_eps() )
555 {
556 facilitate_( Kplus_ * std::exp( minus_dt / cp.tau_plus_ ), cp );
557 }
558 ++start;
559 }
560
561 // depression due to new pre-synaptic spike
562 process_dopa_spikes_( dopa_spikes, t0, t_spike, cp );
563 depress_( target->get_K_value( t_spike - dendritic_delay ), cp );
564
565 e.set_receiver( *target );
566 e.set_weight( weight_ );
567 e.set_delay_steps( get_delay_steps() );
568 e.set_rport( get_rport() );
569 e();
570
571 Kplus_ = Kplus_ * std::exp( ( t_last_update_ - t_spike ) / cp.tau_plus_ ) + 1.0;
572 t_last_update_ = t_spike;
573 t_lastspike_ = t_spike;
574
575 return true;
576}
577
578template < typename targetidentifierT >
579inline void
581 const std::vector< spikecounter >& dopa_spikes,
582 const double t_trig,
583 const STDPDopaCommonProperties& cp )
584{
585 // propagate all state variables to time t_trig
586 // this does not include the depression trace K_minus, which is updated in the
587 // postsyn. neuron
588
589 // purely dendritic delay
590 double dendritic_delay = get_delay_ms();
591
592 // get spike history in relevant range (t_last_update, t_trig] from postsyn.
593 // neuron
594 std::deque< histentry >::iterator start;
595 std::deque< histentry >::iterator finish;
596 get_target( t )->get_history( t_last_update_ - dendritic_delay, t_trig - dendritic_delay, &start, &finish );
597
598 // facilitation due to postsyn. spikes since last update
599 double t0 = t_last_update_;
600 double minus_dt;
601 while ( start != finish )
602 {
603 process_dopa_spikes_( dopa_spikes, t0, start->t_ + dendritic_delay, cp );
604 t0 = start->t_ + dendritic_delay;
605 minus_dt = t_last_update_ - t0;
606 facilitate_( Kplus_ * std::exp( minus_dt / cp.tau_plus_ ), cp );
607 ++start;
608 }
609
610 // propagate weight, eligibility trace c, dopamine trace n and facilitation
611 // trace K_plus to time t_trig but do not increment/decrement as there are no
612 // spikes to be handled at t_trig
613 process_dopa_spikes_( dopa_spikes, t0, t_trig, cp );
614 n_ = n_ * std::exp( ( dopa_spikes[ dopa_spikes_idx_ ].spike_time_ - t_trig ) / cp.tau_n_ );
615 Kplus_ = Kplus_ * std::exp( ( t_last_update_ - t_trig ) / cp.tau_plus_ );
616
617 t_last_update_ = t_trig;
619}
620
621} // of namespace nest
622
623#endif // of #ifndef STDP_DOPAMINE_SYNAPSE_H
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
bool known(const std::string &key) const
Check whether there exists a value with specified key in the dictionary.
Definition dictionary.h:677
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition exceptions.h:680
CommonSynapseProperties()
Standard constructor.
Definition common_synapse_properties.cpp:36
Base class for dummy nodes used in connection testing.
Definition connection.h:70
double get_delay_ms() const
Definition connection.h:262
size_t get_rport() const
Definition connection.h:316
long get_delay_steps() const
Definition connection.h:271
void set_status(const Dictionary &d, ConnectorModel &cm)
Node * get_target(const size_t tid) const
Definition connection.h:311
void check_connection_(Node &dummy_target, Node &source, Node &target, const synindex syn_id, const size_t receptor_type)
Definition connector_model.h:69
Encapsulate information sent between nodes.
Definition event.h:103
Base class for all NEST network objects.
Definition node.h:99
virtual void register_stdp_connection(double, double, double)
Register a STDP connection.
Definition node.cpp:211
Exception to be thrown if a feature is unavailable.
Definition exceptions.h:108
Class containing the common properties for all synapses of type dopamine connection.
Definition stdp_dopamine_synapse.h:140
double tau_n_
Definition stdp_dopamine_synapse.h:165
double A_plus_
Definition stdp_dopamine_synapse.h:161
volume_transmitter * volume_transmitter_
Definition stdp_dopamine_synapse.h:160
double b_
Definition stdp_dopamine_synapse.h:166
void get_status(Dictionary &d) const
Get all properties and put them into a dictionary.
Definition stdp_dopamine_synapse.cpp:60
long get_vt_node_id() const
Definition stdp_dopamine_synapse.h:172
double Wmin_
Definition stdp_dopamine_synapse.h:167
double A_minus_
Definition stdp_dopamine_synapse.h:162
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties from the values given in dictionary.
Definition stdp_dopamine_synapse.cpp:76
double tau_plus_
Definition stdp_dopamine_synapse.h:163
double tau_c_
Definition stdp_dopamine_synapse.h:164
double Wmax_
Definition stdp_dopamine_synapse.h:168
STDPDopaCommonProperties()
Default constructor.
Definition stdp_dopamine_synapse.cpp:45
Event for spike information.
Definition event.h:420
Definition stdp_dopamine_synapse.h:255
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition stdp_dopamine_synapse.h:261
stdp_dopamine_synapse(const stdp_dopamine_synapse &)=default
Copy constructor from a property object.
void check_connection(Node &s, Node &t, const size_t receptor_type, const synindex syn_id, const CommonPropertiesType &cp)
Definition stdp_dopamine_synapse.h:283
size_t get_rport() const
Definition connection.h:316
double n_
Definition stdp_dopamine_synapse.h:324
void facilitate_(double kplus, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:507
void update_weight_(double c0, double n0, double minus_dt, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:427
void process_dopa_spikes_(const std::vector< spikecounter > &dopa_spikes, double t0, double t1, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:450
double get_delay_ms() const
Return the delay of the connection in ms.
Definition connection.h:262
void trigger_update_weight(size_t t, const std::vector< spikecounter > &dopa_spikes, double t_trig, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:580
stdp_dopamine_synapse()
Default Constructor.
Definition stdp_dopamine_synapse.h:346
double t_lastspike_
Definition stdp_dopamine_synapse.h:335
void update_dopamine_(const std::vector< spikecounter > &dopa_spikes, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:417
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:271
void depress_(double kminus, const STDPDopaCommonProperties &cp)
Definition stdp_dopamine_synapse.h:514
static constexpr ConnectionModelProperties properties
Definition stdp_dopamine_synapse.h:198
Node * get_target(const size_t tid) const
Definition connection.h:311
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition stdp_dopamine_synapse.h:360
void check_synapse_params(const Dictionary &d) const
Checks to see if illegal parameters are given in syn_spec.
Definition stdp_dopamine_synapse.h:393
size_t dopa_spikes_idx_
Definition stdp_dopamine_synapse.h:329
void set_weight(double w)
Definition stdp_dopamine_synapse.h:301
Connection< targetidentifierT, TotalDelay > ConnectionBase
Definition stdp_dopamine_synapse.h:196
double t_last_update_
Definition stdp_dopamine_synapse.h:333
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition stdp_dopamine_synapse.h:375
double Kplus_
Definition stdp_dopamine_synapse.h:322
bool send(Event &e, size_t t, const STDPDopaCommonProperties &cp)
Send an event to the receiver of this connection.
Definition stdp_dopamine_synapse.h:526
double weight_
Definition stdp_dopamine_synapse.h:321
double c_
Definition stdp_dopamine_synapse.h:323
STDPDopaCommonProperties CommonPropertiesType
Definition stdp_dopamine_synapse.h:195
stdp_dopamine_synapse & operator=(const stdp_dopamine_synapse &)=default
Definition volume_transmitter.h:114
const std::vector< spikecounter > & deliver_spikes()
Definition volume_transmitter.h:224
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:282
const std::string n("n")
const std::string Kplus("Kplus")
const std::string c("c")
const std::string weight("weight")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_stdp_dopamine_synapse(const std::string &name)
Class representing an stdp_dopamine_synapse with homogeneous parameters, i.e.
Definition stdp_dopamine_synapse.cpp:36
KernelManager & kernel()
Definition kernel_manager.h:311
ConnectionModelProperties
Definition connector_model.h:49
@ HAS_DELAY
Definition connector_model.h:54
@ SUPPORTS_LBL
Definition connector_model.h:52
@ SUPPORTS_HPC
Definition connector_model.h:51
@ IS_PRIMARY
Definition connector_model.h:53
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:147
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121
double expm1(double x)
Definition numerics.h:44