aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py b/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
index 4cece04..cb29055 100644
--- a/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
+++ b/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
@@ -51,7 +51,7 @@ class Fixation(GazeFeatures.Fixation):
object.__setattr__(self, 'deviation_max', max(deviations_array))
def overlap(self, fixation) -> bool:
- """Does a gaze position from another fixation have a deviation to this fixation centroïd smaller than maximal deviation?"""
+ """Does a gaze position from another fixation having a deviation to this fixation centroïd smaller than maximal deviation?"""
points = fixation.positions.values()
points_x, points_y = [p[0] for p in points], [p[1] for p in points]
@@ -100,6 +100,10 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
self.__saccade_positions = GazeFeatures.TimeStampedGazePositions()
def identify(self, ts, gaze_position, terminate=False):
+ """Identify gaze movement from successive timestamped gaze positions.
+
+ The optional *terminate* argument allows to notify identification algorithm that given gaze position will be the last one.
+ """
# Ignore non valid gaze position
if not gaze_position.valid: