Skip to content

Instantly share code, notes, and snippets.

View talespaiva's full-sized avatar

Tales Paiva Nogueira talespaiva

View GitHub Profile
@talespaiva
talespaiva / kinematic_interpolation.py
Created February 12, 2016 09:29
Python reimplementation of kinematic interpolation algorith (originally written in R). Reference: Long, JA (2015) Kinematic interpolation of movement data. International Journal of Geographical Information Science. DOI: 10.1080/13658816.2015.1081909.
import pandas as pnd
import numpy as np
import matplotlib.pyplot as plt
def pos(t, x1, v1, b, c):
return x1 + v1*t + (t**2)*b/2 + (t**3)*c/6
def kinematic_interpolation(xytvv, times):