denniskb / spice2

The Spice SNN Simulator
Other
6 stars 0 forks source link

Fix spike timing #13

Closed denniskb closed 2 years ago

denniskb commented 2 years ago

Fix spike timing once and for all.

denniskb commented 2 years ago

Translate the following concept 1:1 into code:

given:
- neurons_0
- spikes={}
- synapses_0
- delay=1

time=0

spikes_0 = neurons_0.update() -> neurons_1'
synapses_0.update(pre:spikes_-1, post:spikes_0) -> synapses_1
spikes_0.deliver(neurons_1') -> neurons_1 // deliver over synapses_1

time=1

spikes_1 = neurons_1.update() -> neurons_2'
synapses_1.update(pre:spikes_0, post:spikes_1) -> synapses_2
spikes_1.deliver(neurons_2') -> neurons_2 // deliver over synapses_2

time=2
denniskb commented 2 years ago

@oikonom have a look at