aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeFeatures.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index f223029..bb72583 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -75,8 +75,8 @@ class DispersionBasedFixationIdentifier(FixationIdentifier):
super().__init__(ts_gaze_positions)
- # euclidian dispersion
def __getEuclideanDispersion(self, ts_gaze_positions_list):
+ """Euclidian dispersion algorithm"""
x_list = [gp.x for (ts, gp) in ts_gaze_positions_list]
y_list = [gp.y for (ts, gp) in ts_gaze_positions_list]
@@ -93,8 +93,9 @@ class DispersionBasedFixationIdentifier(FixationIdentifier):
return max(dist), cx, cy
- # basic dispersion
def __getDispersion(self, ts_gaze_positions_list):
+ """Basic dispersion algorithm"""
+ # TODO : allow to select this algorithm
x_list = [gp.x for (ts, gp) in ts_gaze_positions_list]
y_list = [gp.y for (ts, gp) in ts_gaze_positions_list]