stochastic 0.2.0
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:
Manual usage
Put the following dependency into your project's dependences section:
Stochastic library for the D programming Language
Goal
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.
Installation
Easiest is to require the library as a dependency in your dub.conf
{
...
"dependencies": {
"stochastic": "~master"
}
}
Examples
See the example directory for some examples
Examples can be compiled and run with
dub --config=<example_name>
Documentation
Run the following to generate API documentation
dub docs
Gillespie
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
dub --config=population
License
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
- BlackEdder/stochastic
- GPL-3.0
- Copyright © 2014, Edwin van Leeuwen
- Authors:
- Dependencies:
- tested
- Versions:
-
0.3.0 2014-Aug-20 0.2.0 2014-May-23 0.1.0 2014-Mar-11 ~master 2014-Aug-20 ~simplify 2014-Mar-10 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
724 downloads total
-
- Score:
- 0.8
- Short URL:
- stochastic.dub.pm