Description Usage Arguments Details Value
FOr a migration matrix M[i,j], with rowSus(M) all equal to 1, the root mean square dispersal distance from location i is sqrt( sum( M[i,] * dist[i,]^2 ) ); this estimates the average dispersal distance across locations without computing the full distance matrix by taking a random sample of i and averaging.
1 | dispersal_distance(M, pop, normalized = FALSE)
|
M |
A nonnegative migration matrix, with rows summing to < 1. |
pop |
A population object containing the raster and sets of accessible and habitable cells corresponding to M. |
normalized |
Is the matrix M already row-normalized? |
If the rows of M sum to something less than 1 (because migrants may be lost), for the purposes of the migration matrix we should work with the matrix normalized so that rows do sum to 1, since we want migrants conditioned on not being lost.
A vector of mean dispersal distances, for each cell in pop$habitable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.