Description Usage Arguments Value Author(s) Examples
Discretises simulator output
1 | discretise(sim_output, tstep)
|
sim_output |
a dataframe/matrix containing simulator output. The first column should be the simulation time |
tstep |
output time step |
A matrix with the same number of columns as output, discretised at time points: 0, tstep, 2tstep, ...
Colin Gillespie
1 2 | sim_output = data.frame(time = c(0, sort(runif(9))), y=rpois(10, 2))
discretise(sim_output, 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.