View source: R/smoothing_functions.R
gaussian_weight | R Documentation |
Get the gaussian weight of a statistic given its position relative to the center and scaling factor sigma.
gaussian_weight(p, c, s)
p |
numeric. Position of value to smooth. |
c |
numeric. Position of center of window. |
s |
numeric. Sigma, scaling factor. |
A numeric value, the relative weight of the point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.