View source: R/predictability.R
entropy.space | R Documentation |
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$.
entropy.space(probs)
probs |
A vector of probability to find the person in unique locations. |
The entropy value in bits.
Song, C. et al., Limits of predictability in human mobility. Science 2010, 1018. (doi:10.1126/science.1177170)
entropy.rand
, entropy.spacetime
p <- c(0.1, 0.3, 0.5, 0.1) entropy.space(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.