50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

bigutilsr (version 0.3.4)

rollmean: Gaussian smoothing

Description

Gaussian smoothing

Usage

rollmean(x, size)

Arguments

x

Numeric vector.

size

Radius of the smoothing (smaller than half of the length of x). If using size = 0, it returns x.

Value

Numeric vector of the same length as x, smoothed.

Examples

Run this code
# NOT RUN {
(x <- rnorm(10))
rollmean(x, 3)
# }

Run the code above in your browser using DataLab