Skip to main content
. 2022 Dec 6;22(23):9556. doi: 10.3390/s22239556
Algorithm 1
x ← −1 // Current position in gaze_list
n ← 10 // Size of gaze_list

REPEAT:
IF current gaze is on dashboard:
  IF previous gaze is not on dashboard:
   x ← x + 1
   IF x ≥ n:
    x ← 0
   END IF
  END IF
  gaze_time ← current time

ELSE:
  IF x ≥ 0:
   gaze_list[x] ← current time–gaze_time
  END IF
END IF

 current_TDGV ← standard deviation of gaze list
 continue to next gaze datapoint
UNTIL end of measurement