Description Usage Arguments Details Value Examples
This function simulates one realization of a birth-shift-death CTMC with per-particle birth, death, and shift rates lambda, nu, and mu.
1 | simulate.true(t.end, lam, v, mu, initNum)
|
t.end |
A number giving the length of time for the simulation |
lam |
Per-particle birth rate |
v |
Per-particle shift rate |
mu |
Per-particle death rate |
initNum |
An integer, initial total number of particles |
The process begins with initNum particles, each assigned a random location indexed by a number between 1 and 100,000. Simulation occurs until time t.end. The process returns an ordered pair giving the number of initial locations (indices) still occupied, followed by the number of new indices present, by t.end.
A pair of integers giving the number of initial indices still present followed by the number of new indices present in the population. Otherwise, returns '999' as an error code
1 | simulate.true(2,.2,.12,.15,10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.