where a is a parameter that controls degree of filtering, and ni is
the velocity in discrete time i. It is assumed that transportation
mode is ‘‘walking’’ if STVF o 7 km/h.
Long time velocity filtering (LTVF) is calculated as the average
velocity for the interval of last M discrete (s):