Skip to content

humnetlab/elliptic-model

Repository files navigation

The code implements the elliptic model for social fluxes as presented in

The elliptic model for communication fluxes, Herrera-Yagüe et al

explanatory diagram

General syntax

Fluxes = elliptic_model(lat, lng, pop, FLEX=0, option="ellipse", totalSum=1)

  • lat is a 1-D vector containing latitudes of locations
  • lng is a 1-D vector containing longitudes of locations
  • pop is a 1-D vector containing the population of each location
  • FLEX is the flexibility parameter in kilometers. Defaults to 0
  • options either "ellipse" or "union" depending on the model to be applied
  • totalSum desired sum of all ellemnts in the resulting Fluxes matrix. Defaults to 1.

Python version

Depends on numpy

R version

Depends on sp

Matlab version

Works in octave No dependency

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published