entropy.space: Mobility entropy

View source: R/predictability.R

entropy.spaceR Documentation

Mobility entropy

Description

In Song's paper, three kinds of entropy are involved to investigate the predictability of human mobility, i.e., random entropy $S^rand$, spatial entropy $S^unc$ and spatio-temproal entropy $S_i$.

Usage

entropy.space(probs)

Arguments

probs

A vector of probability to find the person in unique locations.

Value

The entropy value in bits.

References

Song, C. et al., Limits of predictability in human mobility. Science 2010, 1018. (doi:10.1126/science.1177170)

See Also

entropy.rand, entropy.spacetime

Examples

p <- c(0.1, 0.3, 0.5, 0.1)
entropy.space(p)

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