Research Article

A Trajectory Partition Method Based on Combined Movement Features

Algorithm 3

TPMF pseudocode.

Input: , the maximum
  angle threshold , the distance threshold .
Output: Feature Point Set FP.
 1:  .
 2:  , .
 3:   Calculate standard deviation of speed in
    TR.
 4:  while do
 5:   if then
 6:    .
 7:   end if
 8:   .
 9:  end while
 10:  .
 11:  .
 12:  Sort the points of FP in a chronological order.
 13:  .
 14:   find the indexes of feature points in FP1
     in TR.
 15:  .
 16:  while do
 17:   .
 18:   .
 19:  end while
 20:  Remove duplicate points from FP.
 21:  Sort points in FP in a chronological order.