Research Article
Comparing Sequential with Combined Spatiotemporal Clustering of Passenger Trips in the Public Transit Network Using Smart Card Data
Algorithm 2
Pseudocode for temporal similarity between passengers.
a = 0; | |
for (i in 1:m) | |
for (j in 1:n) | |
if ( is temporally overlapped with ) a = a + OT (, ); | |
TS (P1, P2) = a / [max (, ]; |