simulate_cell {BSL} R Documentation

Simulation function of the cell biology example

Description

Simulation function of the cell biology example.

Usage

simulate_cell(x, rows, cols, Pm, Pp, sim_iters, num_obs)


Arguments

 x The initial matrix of cell presences of size rows \times cols. rows The number of rows in the lattice (rows in the cell location matrix). cols The number of columns in the lattice (columns in the cell location matrix). Pm Parameter P_m, the probability of cell movement. Pp Parameter P_p, the probability of cell proliferation. sim_iters 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. num_obs The total number of images taken after initialisation.

Value

A rows \times cols \times num_obs array of the cell presences at times 1:num_obs (not time 0).

[Package BSL version 3.2.4 Index]