smth.gaussian {smoother}R Documentation

Smooth Using Gaussian Window

Description

The specific function for smoothing using the gaussian window function

Usage

smth.gaussian(
  x = stop("Numeric Vector 'x' is Required"),
  window = getOption("smoother.window"),
  alpha = getOption("smoother.gaussianwindow.alpha"),
  ...,
  tails = getOption("smoother.tails")
)

Arguments

x

numeric vector of values to smooth, error will be thrown if not provided.

window

the length of the smoothing window, if an integer, represents number of items, else, if a value between 0 and 1, represents the proportion of the input vector

alpha

parameter to determine the breadth of the gaussian window, yielding more or less sensitive smoothing characteristics

...

not used

tails

Logical value as to whether the tail regions should be included or not.

Examples

  y  = runif(100)
  ys = smth.gaussian(y)

[Package smoother version 1.3 Index]