Skip to main content
. 2017 Sep 25;17(10):2201. doi: 10.3390/s17102201
Algorithm 2: Build an Area Summary
Input: AG: a tuple (key, L), where key is a pair (area, time period) and L is a list of taxi information
Output: ASP: a pair (spatio-temporal hash-key key, an area summary AS)
1 Initialize AS as Area Summary;
// calculate area summary value
2 ASkeyAGkey;
3 ASkey.μf is calculated from each group of AGkey,L; // Equation (2)
4 ASkey.List is computed from each group of AGkey,L; // Equation (3)
5 ASkey.pd is calculated from each group of AGkey,L; // Equation (4)
6 ASP ← pair(AGkey,AS);
7 return ASP;