| Algorithm 1 Computation of moving time | |||
| Data: User’s trajectory data (pos = (x, y), array), timestamps (t, array) | |||
| Results: Moving time (mv) feature | |||
| 1 | move_time_array ← [], i = 1 | ||
| 2 | while i < length(pos) do | ||
| 3 | v ← √(posi(x) − posi-1(x))2 + (posi(y) − posi-1(y))2/(ti − ti−1) | ||
| 4 | if v > 0.2 then: | ||
| 5 | move_time_array ← (ti − ti−1) | ||
| 6 | end | ||
| 7 | end | ||
| 8 | mv ← mean(move_time_array) | ||
| 9 | end | ||