aeye-lab / pymovements

A python package for processing eye movement data
https://pymovements.readthedocs.io
MIT License
57 stars 11 forks source link

feat: Add gaze.transforms.smooth() #555

Closed jakobchwastek closed 9 months ago

jakobchwastek commented 9 months ago

Description

Fixes issue #301

Implemented changes

Implementation of transforms.smooth function for smoothing data. The following methods have been implemented

Type of change

How Has This Been Tested?

Tested smoothing methods by applying them to a simple 2D array with values [[0., 0.], [1., 1.], [0., 0.]].

Checklist:

codecov[bot] commented 9 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (c8ef04d) 100.00% compared to head (67bbbde) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #555 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 52 52 Lines 2258 2289 +31 Branches 559 570 +11 ========================================= + Hits 2258 2289 +31 ``` | [Files](https://app.codecov.io/gh/aeye-lab/pymovements/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) | Coverage Δ | | |---|---|---| | [src/pymovements/gaze/gaze\_dataframe.py](https://app.codecov.io/gh/aeye-lab/pymovements/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab#diff-c3JjL3B5bW92ZW1lbnRzL2dhemUvZ2F6ZV9kYXRhZnJhbWUucHk=) | `100.00% <100.00%> (ø)` | | | [src/pymovements/gaze/transforms.py](https://app.codecov.io/gh/aeye-lab/pymovements/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab#diff-c3JjL3B5bW92ZW1lbnRzL2dhemUvdHJhbnNmb3Jtcy5weQ==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jakobchwastek commented 9 months ago

Adding smooth as transformation method in GazeDataFrame is missing!