I want to calculate average speed of the distance traveled using gps signals.

Is this formula calculates correct avg speed?

avgspeed = totalspeed/count

where count is the no.of gps signals.

If it is wrong,please any one tell me the correct formula.

有帮助吗?

解决方案

While that should work, remember that GPS signals can be confused easily if you're in diverse terrain. Therefore, I would not use an arithmetic mean, but compute the median, so outliers (quick jumps) would not have such a big effect on the result.

From Wikipedia (n being the number of signals):

If n is odd then Median (M) = value of ((n + 1)/2)th item term.

If n is even then Median (M) = value of [((n)/2)th item term + ((n)/2 + 1)th item term ]/2

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top