Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

smoothGauss

Smooth a numeric vector using a Gaussian window


Description

Smooth a numeric vector using a Gaussian window

Usage

smoothGauss(x, alpha, window = 0.1)

Arguments

x

numeric vector of values to smooth.

alpha

numeric value controlling the size of the gaussian smoothing window. Proportional to the standard deviation of the Gaussian smoothing kernel where sd=(N-1)/(2*alpha) with N being the length of the input vector.

window

a fraction between 0 and 1 representing the proportion of the input vector to include in the moving window.

Details

Adapted from smth.gaussian in the smoother package.

References

Hamilton, N. (2015). smoother: Functions Relating to the Smoothing of Numerical Data, R package version 1.1, https://CRAN.R-project.org/package=smoother

Examples

smoothGauss(runif(200),alpha=5)

rcarbon

Calibration and Analysis of Radiocarbon Dates

v1.4.2
GPL (>= 2)
Authors
Andrew Bevan [aut] (<https://orcid.org/0000-0001-7967-3117>), Enrico Crema [aut, cre] (<https://orcid.org/0000-0001-6727-5138>), R. Kyle Bocinsky [ctb], Martin Hinz [ctb], Philip Riris [ctb], Fabio Silva [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.