Skip to content

Commit 437e918

Browse files
authored
Merge pull request #3234 from nest/clopath-histentry-doc
Update C++ docstrings for extended histentry
2 parents 2ee54cc + 234ed64 commit 437e918

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

models/clopath_synapse.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,18 @@ clopath_synapse< targetidentifierT >::send( Event& e, size_t t, const CommonSyna
251251
// spike. So we initially read the
252252
// history(t_last_spike - dendritic_delay, ..., T_spike-dendritic_delay]
253253
// which increases the access counter for these entries.
254-
// At registration, all entries' access counters of
255-
// history[0, ..., t_last_spike - dendritic_delay] have been
256-
// incremented by ArchivingNode::register_stdp_connection(). See bug #218 for
257-
// details.
254+
255+
// Note that in the STDP synapse, this loop iterates over post spikes,
256+
// whereas here we loop over continuous-time history entries (see
257+
// histentry_extended).
258258
target->get_LTP_history( t_lastspike_ - dendritic_delay, t_spike - dendritic_delay, &start, &finish );
259-
// facilitation due to postsynaptic activity since last pre-synaptic spike
260259
while ( start != finish )
261260
{
262261
const double minus_dt = t_lastspike_ - ( start->t_ + dendritic_delay );
262+
263+
// facilitation due to postsynaptic activity since last pre-synaptic spike
263264
weight_ = facilitate_( weight_, start->dw_, x_bar_ * exp( minus_dt / tau_x_ ) );
265+
264266
++start;
265267
}
266268

nestkernel/histentry.h

+11-6
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,25 @@ class histentry
4040
double t_; //!< point in time when spike occurred (in ms)
4141
double Kminus_; //!< value of Kminus at that time
4242
double Kminus_triplet_; //!< value of triplet STDP Kminus at that time
43-
size_t access_counter_; //!< access counter to enable removal of the entry, once all neurons read it
43+
size_t
44+
access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
4445
};
4546

46-
// entry in the history of plasticity rules which consider additional factors
47+
/**
48+
* Class to represent a single entry in the spiking history of the ClopathArchivingNode or the UrbanczikArchivingNode.
49+
*
50+
* These history entries typically represent continuously-evolving values in time, so history timestamps correspond to
51+
* ``nest.biological_time`` in simulation resolution rather than times of spikes.
52+
*/
4753
class histentry_extended
4854
{
4955
public:
5056
histentry_extended( double t, double dw, size_t access_counter );
5157

52-
double t_; //!< point in time when spike occurred (in ms)
58+
double t_; //!< point in time for the history entry (in ms)
5359
double dw_;
54-
//! how often this entry was accessed (to enable removal, once read by all
55-
//! neurons which need it)
56-
size_t access_counter_;
60+
size_t
61+
access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
5762

5863
friend bool operator<( const histentry_extended he, double t );
5964
};

0 commit comments

Comments
 (0)