smoothGaussian: Smooth the values in a numeric vector using a Gaussian kernel

Description Usage Arguments Examples

View source: R/Math.R

Description

The values at -1.0 are consider invalid by defaults and are not used or changed. Set the value of the argument degrees to TRUE if the data are circular. For example, if the first and last data of the vector should be considered next to each other.

Usage

1
smoothGaussian(x, sd = 2, invalid = -1, type = "linear")

Arguments

x

Numeric vector

sd

The standard deviation of the Gaussian kernel used to smooth

invalid

Numeric indicating which value should be treated as NA, by default -1.0. The value should be a numeric.

type

character vector indicating the type of data to smooth Valid values are linear, circular, degrees. circular assumes that the vector is, i.e. the first and last values are adjacent. degrees assumes that the vector contains degrees (0=360)

Examples

1
smoothGaussian(x=c(1:10,9:1),sd=2,invalid=-1.0)

kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.