Algorithm 2 TRP |
Input: : All synopses : Specified temporal type : Parameter ‘eps‘ in DBSCAN Output: : Collection of traffic patterns recognized 1: Collection of daily traffic state sequences: 2: All days during the period of : 3: for each in s do 4: if within and in then 5: Push states of synopses on into chronologically 6: end if 7: end for 8: Push every into 9: 10: for each in do 11: 12: Traffic pattern recognized of : 13: The number of sequences in : 14: for in do 15: for each in do 16: 17: end for 18: end for 19: 20: Push into 21: end for 22: return |