Algorithm 1.
INPUT: | Call log database, the constants , and , and table of distances between geographic units |
OUTPUT: | OD Matrix |
01 | Begin |
02 | = NULL |
03 | For each day of the database |
04 | For each trip detected by two successive records of the same user, with distance and in the time interval |
05 | If and |
06 | Identify presumed domicile |
07 | Compute de expansion factor |
08 | + |
09 | End If |
10 | End For |
11 | End For |
12 | Returns Matrix |
13 | End |