roaldarbol / animovement

An R toolbox for analysing animal movement across space and time
http://www.roald-arboel.com/animovement/
Other
4 stars 0 forks source link

Smoothing filters (Savitsky-Golay, butterworth) #41

Open roaldarbol opened 2 days ago

roaldarbol commented 2 days ago

Can rely on the signal R package, which again implements the filtering functions from Matlab (I remember having used the filtfilt and butterworth before, they're common in human motor work, so maybe include them too as options). Also see the trajr package for their straightforward implementation of the Savitsky-Golay filter - check to be sure that the default values hold up (https://github.com/JimMcL/trajr/blob/c1d2005f03cc4f17e6cc277371ab26de1bf2bd8d/R/trajectory.R#L372).