msSmoothMean {msProcess}R Documentation

Fit a Smooth Curve Using Moving Average

Description

Fits a smooth curve to a vector using moving average and returns a vector of fitted smooth curve values evaluated at the original locations.

Usage

msSmoothMean(y, half.span=250, process="msSmoothMean")

Arguments

y A numeric vector.
half.span A numeric value denoting half of the window width when performing average. Default: 250.
process A character string denoting the name of the process to register with the (embedded) event history object of the input after processing the input data. Default: "msSmoothMean".

Value

A vector of fitted smooth curve values evaluated at the original locations.

See Also

msSmoothApprox, msSmoothKsmooth, msSmoothLoess, msSmoothMonotone, msSmoothSpline, msSmoothSupsmu.


[Package msProcess version 1.0.5 Index]