Description Usage Arguments Examples
View source: R/ApproximateCharFun.R
simple_smoothe
computes a simple moving weighted average of a input vector x
. The weight vector must have an odd number of entries, and defaults to
c(0.1,0.20,0.4,0.20,0.1)
1 | simple_smoothe(x, svec = c(0.1, 0.2, 0.4, 0.2, 0.1))
|
x |
input to be smoothed |
svec |
smoothing vector |
1 2 3 4 5 | ## Not run:
smoothed_yvals = simple_smoothe(yvals)
smoothed_yvals = simple_smoothe(yvals,c(0.2,0.6,0.2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.