Description Usage Arguments Details Value Author(s)
Function for smoothing data points.
1 |
x |
vector of x-coordinates of data points to be smoothed |
y |
vector of y-coordinates of data points to be smoothed (x and y must be of the same length) |
sigma |
standard deviation of Gaussian distribution used as weights for local quadratic or local linear regression |
newx |
optional vector of x-coordinates at which smoothed results and derivatives are to be calculated (if not specified, results are provided at the same locations as there is data available) |
fac.extrap |
calculate smoothed value only if data is available within |
method |
"quadratic" (default) indicates local quadratic regression, otherwise local linear regression is used |
Function for smoothing data points and estimating the derivative of the smoothed curve by local quadratic or optionally local linear regression. Local regression is implemented by using a Gaussian distribution of weights centered at the point at which the smoothed curve is evaluated. The smoothing parameter is the standard deviation of the Gaussian weights.
Returns a data frame containing:
x |
x-coordinates at which smoothed results and derivatives are available |
y |
smoothed results at the locations x |
ydot |
derivatives of 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.