function processRow(t) |
for all
j
in
postSynapticNeurons
do
|
history ← getHistoryEntries(j, told, t) |
(tprev, sprev, Dprev, typeprev) ← getPrecedingHistoryEntry(t) |
tc ← told
|
|
for all (tj, sj, Dj, typej) in
history
do
|
|
|
if
typej
is not
dopamine
then
|
Cij ← applyPostSpike(Cij, tj, told, si) |
Dc ← Dj
|
tc ← tj
|
|
(tj, sj, Dj, typej)←getLastHistoryEntry(t) |
|
|
Cij ← applyPreSpike(Cij, t, tj, sj) |
addWeightToRingBuffer(wij, j) |
|
si ← addPreSpike(si, t, told) |
told ← t
|
|