Simulation function of the cell biology example.
simulate_cell(x, rows, cols, Pm, Pp, sim_iters, num_obs)The initial matrix of cell presences of size rows
cols.
The number of rows in the lattice (rows in the cell location matrix).
The number of columns in the lattice (columns in the cell location matrix).
Parameter , the probability of cell movement.
Parameter , the probability of cell proliferation.
The number of discretisation steps to get to when an
observation is actually taken. For example, if observations are taken every
5 minutes but the discretisation level is 2.5 minutes, then
sim_iters would be 2. Larger values of sim_iters lead to more
``accurate'' simulations from the model, but they also increase the
simulation time.
The total number of images taken after initialisation.
A rows cols
num_obs array
of the cell presences at times 1:num_obs (not time 0).