You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response of an Alpha synapse after a single spike input is:
g_syn(t) = g_max * t/tau * exp(-t/tau)
For a train of input spikes (represented by binary vector s(t) = [0 0 0 1 0 1 0 0 ...]), the response will be the convolution between s(t) and g_syn(t).
In BrainPy, for computational efficiency, the convolution is replaced by the following differential equations:
g_syn(t) = g_max * g
dg/dt = -g/tau + h
dh/dt = -h/tau
h <-- h + s(t)
However, the recorded g_syn(t) by this method differs by the convolution method by a factor of tau. The following code illustrates this:
The key is the h <-- h + s(t) part. If I change it to h <-- h + s(t)/tau, the outputs from differential equation form and convolution form will be the same. However, I have checked other simulator (https://brian2.readthedocs.io/en/stable/user/converting_from_integrated_form.html), but it seems that it uses similar implementation as in BrainPy (i.e. directly shifting h without divided by tau). So I am a bit confused. Is the larger response of differential equation form correct?
The text was updated successfully, but these errors were encountered:
The response of an Alpha synapse after a single spike input is:
For a train of input spikes (represented by binary vector
s(t) = [0 0 0 1 0 1 0 0 ...]
), the response will be the convolution betweens(t)
andg_syn(t)
.In BrainPy, for computational efficiency, the convolution is replaced by the following differential equations:
However, the recorded
g_syn(t)
by this method differs by the convolution method by a factor oftau
. The following code illustrates this:The key is the
h <-- h + s(t)
part. If I change it toh <-- h + s(t)/tau
, the outputs from differential equation form and convolution form will be the same. However, I have checked other simulator (https://brian2.readthedocs.io/en/stable/user/converting_from_integrated_form.html), but it seems that it uses similar implementation as in BrainPy (i.e. directly shiftingh
without divided bytau
). So I am a bit confused. Is the larger response of differential equation form correct?The text was updated successfully, but these errors were encountered: