Two LIF neurons + a learning synapse β Canvas 2D
A plain Canvas2D port of the 3D scene: two leaky integrate-and-fire (LIF) neurons connected by one adjustable synapse. The strength of that connection updates in real time by spike-timing-dependent plasticity (STDP), the leading model of how single synapses learn.
dw = +A+ Β· exp(βdt/tau+) if dt > 0 (potentiation)
dw = βAβ Β· exp(+dt/tauβ) if dt < 0 (depression)
w β clip(w + dw, 0, 1) with dt = t_post β t_pre