sdeint icon indicating copy to clipboard operation
sdeint copied to clipboard

Examples

Open yoavram opened this issue 9 years ago • 3 comments

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

yoavram avatar Jan 25 '16 08:01 yoavram

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 avatar Jan 28 '16 08:01 mattja

.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 :+1:

yoavram avatar Jan 28 '16 11:01 yoavram

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

yoavram avatar Feb 08 '16 06:02 yoavram