Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-in support for discrete-event simulation #29

Open
jsherfey opened this issue Feb 20, 2015 · 0 comments
Open

build-in support for discrete-event simulation #29

jsherfey opened this issue Feb 20, 2015 · 0 comments

Comments

@jsherfey
Copy link
Owner

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)

@kupiqu kupiqu changed the title build-in support for discete-event simulation build-in support for discrete-event simulation Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant