Implementation of the gillespie algorithm for stochastic simulations. Also add support for drawing random numbers from probability distributions.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Stochastic library for the D programming Language
This library implements various functions useful for stochastic simulations. Currently the project contains a simple implementation of the Gillespie algorithm. It also add support for drawing random values from normal and exponential distributions.
Easiest is to require the library as a dependency in your dub.conf
See the example directory for some examples
Examples can be compiled and run with
Run the following to generate API documentation
The Gillespie algorithm executes events in random order. Events with a larger rate will happen more often than events with a low rate. The algorithm is currently implemented using EventList, which will return the time till the next event and the next event.
See examples/population.d for an example
The library is distributed under the GPL-v3 license. See the file COPYING for more details.
- Registered by Edwin van Leeuwen
- 0.2.0 released 10 years ago
- Copyright © 2014, Edwin van Leeuwen