simple_smoothe: Simple smoothing

Description Usage Arguments Examples

View source: R/ApproximateCharFun.R

Description

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)

Usage

1
simple_smoothe(x, svec = c(0.1, 0.2, 0.4, 0.2, 0.1))

Arguments

x

input to be smoothed

svec

smoothing vector

Examples

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)

rivasiker/phasty documentation built on June 15, 2021, 9:18 p.m.