Research Article
A Framework for Spatial Interaction Analysis Based on Large-Scale Mobile Phone Data
Algorithm 1
Binning method of original mobile phone data.
(1) Input Mobile subscriber: | (2) Set of original logs in chronological sort: | (3) | (4) The width of bins: min | (5) Output The reorganized mobile phone data of mobile subscriber : | (6) | (7) Procedure Bin | (8) ; ; ; | (9) while do | (10) /* Identify whether the adjacent logs fall in the same bin. */ | (11) if then | (12) /* If in the same bin, just assign weights to the location coordinates. */ | (13) | (14) | (15) else then | (16) /* If in the different bins, obtain the equivalent log of the former bin. */ | (17) | (18) | (19) | (20) /* Identify whether the adjacent logs fall in the adjacent bins. */ | (21) if then | (22) | (23) | (24) | (25) else then | (26) ; | (27) | (28) | (29) | (30) |
|