Is it OK to have an assignment like
x' = x' + 1
in a NET_RECEIVE block, if x' is defined in a DERIVATIVE block?
If this is disallowed, can you recommend a strategy for achieving the same result?
Many thanks,
Dan
Change the value of a derivative in NET_RECEIVE?
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Change the value of a derivative in NET_RECEIVE?
I can tell you what to do but the details will depend on what's in your mod file. Just to email it to me
ted dot carnevale at yale dot edu
ted dot carnevale at yale dot edu
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Change the value of a derivative in NET_RECEIVE?
Actually that wasn't what he wanted to do. The real question was how to replicate a synaptic mechanism in which one of the gating states is governed by a DE of the form
x' = -x/tau_x + SUMMA delta(t-ti)
where delta is the Dirac delta function and the ti are the times of synaptic activation.
The answer is to have a DERIVATIVE block in which there is the statement
x' = -x/tau_x
and a NET_RECEIVE block in which there is the statement
x = x+1
(because the effect of each synaptic activation is to immediately increment x by 1).
x' = -x/tau_x + SUMMA delta(t-ti)
where delta is the Dirac delta function and the ti are the times of synaptic activation.
The answer is to have a DERIVATIVE block in which there is the statement
x' = -x/tau_x
and a NET_RECEIVE block in which there is the statement
x = x+1
(because the effect of each synaptic activation is to immediately increment x by 1).