Skip to main content
. 2020 Sep 9;20(18):5133. doi: 10.3390/s20185133
Algorithm 1: Data preprocessing
Input: Original dataset XTj, minimum voyage time interval threshold ε.
Output: Trajectories Tsi.
1: Connect to the database.
2: Get Vi where i in Len(O) and Vi.//Δt is the total time interval of voyage i.
3: if Ri.mmsi = Ri1.mmsi &&Ri.sog<1kn && δt<1200s where δt = Ri.tRi1.t//Ri is the next state of Vi, Ri.sog is the speed of the vessel, δt is the time interval between two-state.
4: then Optimization (Vi), TsiVi.//Optimize (·) is the trajectory optimizing function.
Return: Tsi