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

Examples #4

Open
yoavram opened this issue Jan 25, 2016 · 3 comments
Open

Examples #4

yoavram opened this issue Jan 25, 2016 · 3 comments

Comments

@yoavram
Copy link
Contributor

yoavram commented Jan 25, 2016

Great package, works very well.
It could be useful to add some examples to the README.
Here's one I made for the logistic growth model:
https://gist.github.com/yoavram/5550c3f5daf1772e8352

@mattja
Copy link
Owner

mattja commented Jan 28, 2016

You are right, examples in the README would be good.
Love the @interact, works very well for demoing stochastic processes. If I can find a way to handle
.ipynb files under version control then we could put some in an examples directory.

I'll add these two examples to the README now:
eqn1
eqn2

I won't add the stochastic logistic model for now, as it has the slight complication of an extinction time if N reaches 0. If it crosses N=0, the diffusion is undefined after that and the integration then produces NaN values which generate warning messages in the notebook.

mattja added a commit that referenced this issue Jan 28, 2016
@yoavram
Copy link
Contributor Author

yoavram commented Jan 28, 2016

.ipynb work in version control - they are just json files, and github renders them automatically.
you can diff them using nbconvert by converting them to md files, if you want.

I see your point about extinction, it can be avoided by choosing N(0) high enough, but it doesn't really matter to me, as long as there are some examples 👍

@yoavram
Copy link
Contributor Author

yoavram commented Feb 8, 2016

@mattja can you give one sentence for each example describing where these equations arise in science?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants