Research Article

Comparing Sequential with Combined Spatiotemporal Clustering of Passenger Trips in the Public Transit Network Using Smart Card Data

Algorithm 1

Pseudocode for the calculating spatial similarity between passengers.

a = 0;
for (i in 1:m) B = Ф;
 for (j in 1:n)
  if ( is spatially similar to ) add to B;
 a = a + min (l (, max (l (T є B))));
SS (P1, P2) = [min (a12, a21)] / [max (l (), l ()];