aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/GazeAnalysis/NGram.py
diff options
context:
space:
mode:
authorThéo de la Hogue2023-05-31 15:35:28 +0200
committerThéo de la Hogue2023-05-31 15:35:28 +0200
commite35e90d161ffb9202459631a0049448cde905b3c (patch)
tree0ad987c3ffcea30f739cc8e106df2a5f00ad22da /src/argaze/GazeAnalysis/NGram.py
parentd1cdae406d349023eb9e221fd226c05744064dfd (diff)
downloadargaze-e35e90d161ffb9202459631a0049448cde905b3c.zip
argaze-e35e90d161ffb9202459631a0049448cde905b3c.tar.gz
argaze-e35e90d161ffb9202459631a0049448cde905b3c.tar.bz2
argaze-e35e90d161ffb9202459631a0049448cde905b3c.tar.xz
Testing all gaze analysis algorithm. Unifying paper citation.
Diffstat (limited to 'src/argaze/GazeAnalysis/NGram.py')
-rw-r--r--src/argaze/GazeAnalysis/NGram.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/argaze/GazeAnalysis/NGram.py b/src/argaze/GazeAnalysis/NGram.py
index c3ff337..f3f0cca 100644
--- a/src/argaze/GazeAnalysis/NGram.py
+++ b/src/argaze/GazeAnalysis/NGram.py
@@ -1,6 +1,12 @@
#!/usr/bin/env python
-""" """
+"""Implementation of N-Gram algorithm as proposed in:
+
+ **Lounis C., Peysakhovich V., Causse M. (2021).**
+ *Visual scanning strategies in the cockpit are modulated by pilots’ expertise: A flight simulator study.*
+ PLoS ONE (16(2), 6).
+ [https://doi.org/10.1371/journal.pone.0247061](https://doi.org/10.1371/journal.pone.0247061)
+"""
__author__ = "Théo de la Hogue"
__credits__ = []
@@ -14,14 +20,12 @@ from argaze import GazeFeatures
@dataclass
class AOIScanPathAnalyzer(GazeFeatures.AOIScanPathAnalyzer):
- """Implementation of N-gram algorithm as ...
- """
def __post_init__(self):
pass
- def analyze(self, aoi_scan_path: GazeFeatures.AOIScanPathType, n: int) -> list:
+ def analyze(self, aoi_scan_path: GazeFeatures.AOIScanPathType, n: int) -> dict:
"""Analyze aoi scan path."""
assert(len(aoi_scan_path) > 1)