Description Usage Arguments Details Value Author(s)
Function for smoothing piecewise linear functions.
1 | Smooth.fun(data,z,sigma,newz=NA,newx=NA,fac.extrap=1,method="quadratic")
|
data |
list of matrices specifying piecewise linear functions: for each function, the independent variable x must be provided in the first column, the dependent variable y in the second |
z |
vector of z-coordinates corresponding to the functions |
sigma |
standard deviation of Gaussian distribution used as weights for local quadratic regression in z-coordinates (see function |
newz |
optional vector of z-coordinates at which smoothed functions are to be calculated (if not specified, results are provided at the same locations as there is data available) |
newx |
optional vector of x-coordinates at which smoothed function values are to be calculated |
fac.extrap |
calculate smoothed value only if data is available within |
method |
"quadratic" (default) indicates local quadratic regression, otherwise local linear regression is used |
The smoothing parameter is the standard deviation of the Gaussian weights.
Returns a list of data frames with columns:
x |
x-coordinates at which smoothed results are available |
y |
smoothed results at the locations x |
Peter Reichert <peter.reichert@eawag.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.