Description Usage Arguments Details Value See Also Examples

Discretely-sampled function is first smoothed. Features of the smoothed function are then extracted. Some of the key features include mean value, first and second derivatives, critical points (i.e. local maxima and minima), curvature of function at critical points, wiggliness of the function, noise in data, and outliers in data.

1 2 |

`x` |
a vector of independent variable (e.g. time) at which the function is sampled. |

`y` |
a vector of response values to be smoothed |

`smoother` |
a character string specifying the name of the smoothing algorithm; currently only 2 smoothers are implemented: smoothing spline and a kernel smoother with a global plug-in bandwidth |

`fits.return` |
a logical variable specifying whether or not to return the smoothed function and its first 2 derivatives. Default is TRUE. It must be TRUE for plotting the results. |

`control` |
A list of control parameters. See *Details* for more information. |

`...` |
Additional arguments to be passed to the smoothers. An important optional parameter is the |

Argument `control`

is a list specifing any changes to default values of control parameters. Note that the names of these must be specified completely. Partial matching will not work.

Default values of `control`

are: ctrl <- list(npts=100, c.outlier=3, decim.out=2)

`npts`

: an integer. Number of points to use in estimating smoothed function and for computing features

`c.outlier`

: a constant denoting number of standard deviations away from smooth fit for determining whether a point is an outlier. Default is 3.

`decim.out`

: number of decimals to display in the features output.

A list with a number of extracted features of the underlying smooth function:

`f` |
: a numeric vector containing 10 basic features of the function: mean, min, max, std.dev, noise, signa-to-noise ratio, minimum and maximum of first derivative, wiggliness, and number of critical points |

`cpts` |
: Locations of the critical points (e.g. points where the first derivative is zero) |

`curvature` |
: Value of second derivative at the critical points |

`outliers` |
: Locations of outlying data points |

`fits` |
an attribute of the object returned by |

`fget`

, `plot.features`

, `plot`

, `glkerns`

, `smooth.spline`

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.