Calculate the curviness of a point over a time period