Skip to content

Commit c8db4ea

Browse files
author
C.A.P. Linssen
committed
update C++ docstrings for extended histentry
1 parent 3a7a8c8 commit c8db4ea

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

models/clopath_synapse.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ clopath_synapse< targetidentifierT >::send( Event& e, size_t t, const CommonSyna
247247
std::deque< histentry_extended >::iterator start;
248248
std::deque< histentry_extended >::iterator finish;
249249

250-
// facilitation due to postsynaptic activity since last pre-synaptic spike
251-
252250
// For a new synapse, t_lastspike_ contains the point in time of the last
253251
// spike. So we initially read the
254252
// history(t_last_spike - dendritic_delay, ..., T_spike-dendritic_delay]
@@ -261,7 +259,10 @@ clopath_synapse< targetidentifierT >::send( Event& e, size_t t, const CommonSyna
261259
while ( start != finish )
262260
{
263261
const double minus_dt = t_lastspike_ - ( start->t_ + dendritic_delay );
262+
263+
// facilitation due to postsynaptic activity since last pre-synaptic spike
264264
weight_ = facilitate_( weight_, start->dw_, x_bar_ * exp( minus_dt / tau_x_ ) );
265+
265266
++start;
266267
}
267268

nestkernel/histentry.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ 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
44-
access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
43+
size_t access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
4544
};
4645

4746
/**
@@ -55,10 +54,9 @@ class histentry_extended
5554
public:
5655
histentry_extended( double t, double dw, size_t access_counter );
5756

58-
double t_; //!< point in time for the history entry spike occurred (in ms)
57+
double t_; //!< point in time for the history entry (in ms)
5958
double dw_;
60-
size_t
61-
access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
59+
size_t access_counter_; //! how often this entry was accessed (to enable removal, once read by all synapses which need it)
6260

6361
friend bool operator<( const histentry_extended he, double t );
6462
};

0 commit comments

Comments
 (0)