radius.of.gyration: Radius of gyration for human mobility

View source: R/radius_of_gyration.R

radius.of.gyrationR Documentation

Radius of gyration for human mobility

Description

Given a series of locations denoted by lat/lon coordinates, the radius of gyration for individual is calculated.

Usage

radius.of.gyration(lat, lon, w = rep(1, length(lat)))

Arguments

lat, lon

The geographic coordinates of locations

w

The weight value for each location

Value

The radius of gyration (km)

References

M. C. Gonzalez, C. A. Hidalgo, and A.-L. Barabasi, "Understanding individual human mobility patterns," Nature, vol. 453, no. 7196, pp. 779-782, Jun. 2008.

See Also

midpoint

Examples

lat <- c(30.2, 30, 30.5)
lon <- c(120, 120.4, 120.5)
radius.of.gyration(lat, lon)


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.