# How to smooth a path (and speed calculation) based on randomly timed coordinates? [closed]

first my actual problem. then my try on improving the current way of solving this with the wish for feedback or even a solution :)

gpx file with lat/long, elevation and time. wanna calculate speed... easy! when visualizing the speed on a chart you would figure it needs a little smoothing. done you have a pretty accurate speed, average-speed, max-speed...

...but i want more ;)

1) the coordinates are from an object that is adjusting there direction in a more or less smooth/curved fashion (aka. car, bike,...). thus smoothing the path would/could be nice. right? maybe something like a Bézier curve? but the path should still follow thru the actual measured points. any ideas?

2) smoother path would be generated by creating more points...right? so how do i split the time to the newly create points along the path in a similar way (so the new points along the path are timed like the measured ones)?

3) as long as the resulting data isn't less accurate i'm happy with it. still, feedback about how much or little improvement those calculations might bring are highly appreciated.

thx.

-

## closed as off topic by dmckee♦May 7 '13 at 19:30

Questions on Physics Stack Exchange are expected to relate to physics within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

As described there isn't any actually physics here. Various splines are the standard solution to the general problem. Consider Stack Overflow, Stats.SE or SciComp.SE. – dmckee May 7 '13 at 19:30