move.matrix.gene: Creating a movement matrix

Description Usage Arguments Details Examples

View source: R/MoveMatrixGene.R

Description

Applys a radiation model to a population surface to calcualte relative flux of human movement between patches

Usage

1
move.matrix.gene(unipix, hometime, type = "radiation")

Arguments

unipix

Universal pixel lookup table, see ?make.unipix

hometime

Paramter that controls the spatial concentration of movement

type

Human movement model type. Choose from "radiation", "gravity" or "exponential"

Details

Returns a 2 element list: i) a list of length equal to the number of patches. Each item in this list is a movement matrix (in vector form) with fluxes between the home patch and all other patches, ii) a movement matrix (in vector form) that sums total time allocation in each pixel (from residents and visitors)

Examples

1
2
3
4
data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
mlist <- move.matrix.gene(unipix, hometime= 0.1, type = "radiation")

obrady/SpatialDengue documentation built on Nov. 27, 2020, 12:13 p.m.