Argons / elliptic-model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 35.1%Language:MATLAB 34.0%Language:R 30.8%