dispersal_distance: Estimate the Root Mean Square Dispersal Distance from a...

Description Usage Arguments Details Value

Description

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.

Usage

1
dispersal_distance(M, pop, normalized = FALSE)

Arguments

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?

Details

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.

Value

A vector of mean dispersal distances, for each cell in pop$habitable.


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.