diff options
author | Théo de la Hogue | 2023-07-03 14:53:40 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-07-03 14:53:40 +0200 |
commit | 3d66f3e2d58b7038cdfdf272f2d813e24b730243 (patch) | |
tree | 912f8c70933f1f4b3d0097b93f6089b5f7914f23 /src/argaze.test/GazeAnalysis/TransitionMatrix.py | |
parent | 25554ea7710c35107f0904532df093f9c15f74ae (diff) | |
download | argaze-3d66f3e2d58b7038cdfdf272f2d813e24b730243.zip argaze-3d66f3e2d58b7038cdfdf272f2d813e24b730243.tar.gz argaze-3d66f3e2d58b7038cdfdf272f2d813e24b730243.tar.bz2 argaze-3d66f3e2d58b7038cdfdf272f2d813e24b730243.tar.xz |
Updating GazeAnalysis test.
Diffstat (limited to 'src/argaze.test/GazeAnalysis/TransitionMatrix.py')
-rw-r--r-- | src/argaze.test/GazeAnalysis/TransitionMatrix.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/argaze.test/GazeAnalysis/TransitionMatrix.py b/src/argaze.test/GazeAnalysis/TransitionMatrix.py index 997b706..9a2f4e7 100644 --- a/src/argaze.test/GazeAnalysis/TransitionMatrix.py +++ b/src/argaze.test/GazeAnalysis/TransitionMatrix.py @@ -28,24 +28,24 @@ class TestAOIScanPathAnalyzer(unittest.TestCase): # Check aoi scan path self.assertEqual(len(aoi_scan_path), 4) - transition_matrix_probabilities, transition_matrix_density = transition_matrix_analyser.analyze(aoi_scan_path) + transition_matrix_analyser.analyze(aoi_scan_path) # Check transition matrix probabilities ([destination][departure]) - self.assertEqual(transition_matrix_probabilities['Foo']['Foo'], 0) - self.assertEqual(transition_matrix_probabilities['Bar']['Bar'], 0) - self.assertEqual(transition_matrix_probabilities['Shu']['Shu'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Foo']['Foo'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Bar']['Bar'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Shu']['Shu'], 0) - self.assertEqual(transition_matrix_probabilities['Foo']['Bar'], 0) - self.assertEqual(transition_matrix_probabilities['Foo']['Shu'], 1) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Foo']['Bar'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Foo']['Shu'], 1) - self.assertEqual(transition_matrix_probabilities['Bar']['Foo'], 1) - self.assertEqual(transition_matrix_probabilities['Bar']['Shu'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Bar']['Foo'], 1) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Bar']['Shu'], 0) - self.assertEqual(transition_matrix_probabilities['Shu']['Foo'], 0) - self.assertEqual(transition_matrix_probabilities['Shu']['Bar'], 1) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Shu']['Foo'], 0) + self.assertEqual(transition_matrix_analyser.transition_matrix_probabilities['Shu']['Bar'], 1) # Check transition matrix density - self.assertEqual(transition_matrix_density, 0.3333333333333333) + self.assertEqual(transition_matrix_analyser.transition_matrix_density, 0.3333333333333333) if __name__ == '__main__': |