Skip to main content
. 2024 Jan 8;24(2):367. doi: 10.3390/s24020367
Algorithm 4: RANSAC evaluation for each trajectory
1: Input:states S containing Scentroid, SK9, SK10
2: Output: number of inliers I
3: For Each s in (Scentroid, SK9, SK10),
4:          X , Y=s
5:        y pred= RANSAC weight bin model (X)
6:         Adev=|ypredy|
7:         If  Adev<MAD
8:                classify as inlier I
9:         Otherwise
10:                classify as outlier O
11: End
12: Return number of inliers
13: Trajectory with the highest number of inliers is associated to the weight event