sm: Smooth a vector using a rolling mean.

Description Usage Arguments Value

View source: R/smoothing.R

Description

By default, smoothing is done by averaging over a Gaussian kernel.

Usage

1
sm(x, window = 5, weights = stats::dnorm(seq(-3, 3, length.out = 9)))

Arguments

x

A vector to smooth.

window

The size of the window to smooth over (ignored if weights is non-NULL).

weights

A vector of weights.

Value

A numeric vector.


Ax3man/trackr documentation built on Oct. 8, 2019, 10:53 p.m.