Traj3DSmoothSG | R Documentation |
Smooths a 3-dimensional trajectory using a Savitzky-Golay smoothing filter.
Traj3DSmoothSG(trj3d, p = 3, n = p + 3 - p%%2, ...)
trj3d |
The 3=dimensional trajectory to be smoothed. |
p |
polynomial order (passed to |
n |
Filter length (or window size), must be an odd number. Passed to
|
... |
Additional arguments are passed to
|
Consider carefully the effects of smoothing a trajectory with temporal gaps
in the data. If the smoothed trajectory is used to derive speed and/or
acceleration, it may be advisable to fill in the gaps before smoothing,
possibly by calling Traj3DResampleTime
.
A new trajectory which is a smoothed version of the input trajectory.
Traj3DFromCoords
, sgolayfilt
, TrajSmoothSG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.