Smooths positions of given vector

smooth_vector(x, type, ...)

Arguments

x

numeric vector to smooth

type

median, approx, spline

...

optional parameters for the smoothing function (see below)

Value

smoothed numeric vector

Details

median takes parameters points (default is 11). See runmed spline takes parameters and spar, nknots. See smooth.spline