Description Usage Arguments Value Examples
View source: R/Dist_mat_unif.R
This function generates a distance matrix with uniform distribution of individuals across a specified rectangle.
1 | Dist_mat_unif(N, xlim = 20, ylim = 20)
|
N |
The total number of individuals in the population. |
xlim |
The width of the plane on which individuals will be generated (defaults to 20 units wide). |
ylim |
The height of the place on which individuals will be generated (defaults to 20 units high). |
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.