ulfaslak / scales_human_mobility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The scales of Human Mobility

This package implements the model described in [** article missing for now ** ]

Usage

Given a location trace such as:

>>> data 
array([[ 55.75259295,  12.34353885, 1581401760 ],
       [ 55.7525908 ,  12.34353145, 1581402760 ],
       [ 55.7525876 ,  12.3435386 , 1581403760 ],
       ...,
       [ 63.40379175,  10.40477095, 1583401760 ],
       [ 63.4037841 ,  10.40480265, 1583402760 ],
       [ 63.403787  ,  10.4047871 , 1583403760 ]])

The package allows to extract charachteristic "containers" in the mobility trace, generate synthetic data, and visualize solutions on a map. (see example: 2_Fit_data_and_generate.ipynb)

img

Further, it allows to generate realistic synthetic data on a grid (see example: 3_Generate_data_on_a_grid.ipynb)

About

License:MIT License


Languages

Language:Jupyter Notebook 98.4%Language:Python 1.6%