aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-03-22 16:54:50 +0100
committerThéo de la Hogue2023-03-22 16:54:50 +0100
commit1a4e3283623afc065bbe6b46722f468fe7ea1779 (patch)
treebdbbeb2d8575476b764edc86cb4380306eeedd9c /src
parenteff96fd34b0dec1f069fafde56fe82e5d584a3a3 (diff)
downloadargaze-1a4e3283623afc065bbe6b46722f468fe7ea1779.zip
argaze-1a4e3283623afc065bbe6b46722f468fe7ea1779.tar.gz
argaze-1a4e3283623afc065bbe6b46722f468fe7ea1779.tar.bz2
argaze-1a4e3283623afc065bbe6b46722f468fe7ea1779.tar.xz
Improving documentation.
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: