Skip to main content
. 2023 Sep 28;23(19):8143. doi: 10.3390/s23198143
Algorithm 3: Whether n1 and n2 satisfy time-space logicality and trajectory similarity
Input: Attributes of vehicle n1. (n1.start_x, n1.start_time, n1.end_x, n1.end_time);
Attributes of vehicle n2. (n2.start_x, n2.start_time, n2.end_x, n2.end_time)
Output: bool (Whether n1 and n2 satisfy space-time logicality and trajectory similarity)
graphic file with name sensors-23-08143-i003.jpg
graphic file with name sensors-23-08143-i004.jpg