neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
96 stars 8 forks source link

Provide a Savitzky-Golay filter #139

Closed niksirbi closed 4 months ago

niksirbi commented 6 months ago

Is your feature request related to a problem? Please describe. As @sfmig reminded me, this type of filter is very popular for smoothing pose tracks. We should have it as a standard filtering option in movement.

Describe the solution you'd like Luckily, it's implemented in scipy (see more in-depth explanation here), so it should be simple to apply it to our xarray objects.

Additional context That said, this filter has disadvantages and alternatives are being proposed.