Description Usage Arguments Value Examples
View source: R/Dist_mat_trials.R
This function generates a distance matrix where the population is arranged on seperate lines where the gaps between rows increase by one unit with each successive individual. The multiple lines are far apart and can be thought of as multiple trials of a 2D epidemic, if the first individual in every row is an initial infective.
1 | Dist_mat_trials(N, nline)
|
N |
The total number of individuals in the population. |
nline |
The number of lines(trials). Must divide N. |
The function returns a list. The first object in the list is a Nx2 matrix of the coordinates of the individuals. The second object is an NxN distance matrix.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.