| Algorithm 2: Build an Area Summary |
|
Input: : a tuple (, L), where is a pair (area, time period) and L is a list of taxi information Output: : a pair (spatio-temporal hash-key , an area summary ) 1 Initialize as Area Summary; // calculate area summary value 2 ← ; 3 is calculated from each group of ; // Equation (2) 4 is computed from each group of ; // Equation (3) 5 is calculated from each group of ; // Equation (4) 6 ← pair(,); 7 return ; |