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
in parse_mech_spec():
add mech.conditional
{ condition, response }
in buildmodel(): do all substitutions into condition and response
in dnsimulator(): fprint after ODE updates:
sel=var(:,k)>parm % i.e., sel=(condition)
if any(sel)
vars(sel,k)=f(vars(sel,:),params) % vars(sel,k)=(response)
The text was updated successfully, but these errors were encountered:
kupiqu
changed the title
build-in support for discete-event simulation
build-in support for discrete-event simulation
Feb 25, 2015
example -- integrate-and-fire model
need support for conditional statements
ex) if (V>=Vthresh) { V=Vreset; g=g+b }
in parse_mech_spec():
add mech.conditional
{ condition, response }
in buildmodel(): do all substitutions into condition and response
in dnsimulator(): fprint after ODE updates:
sel=var(:,k)>parm % i.e., sel=(condition)
if any(sel)
vars(sel,k)=f(vars(sel,:),params) % vars(sel,k)=(response)
The text was updated successfully, but these errors were encountered: