Research Article
The Driver Time Memory Car-Following Model Simulating in Apollo Platform with GRU and Real Road Traffic Data
Algorithm 2
The pseudocode for the CF data processing.
| | Processing of vehicle trajectory data. | | | Input: Vehicle Trajectory Data, the number of trajectory records n | | | Output: Car-following Data | | (1) | for to n | | (2) | if then | | (3) | | | (4) | for to n | | (5) | if and then | | (6) | | | (7) | | | (8) | end if | | (9) | end for | | (10) | if then | | (11) | The Data that holds the data is stored in CSV format | | (12) | end if | | (13) | end for |
|