Description Usage Arguments Details Value Note Author(s) References See Also Examples

Smoothing of time series using the Whittaker-Henderson approach.

1 | ```
whittaker(y, lambda = 1600, d = 2)
``` |

`y` |
signal to be smoothed. |

`lambda` |
smoothing parameter (rough 50..1e4 smooth); the default value of 1600 has been recommended in the literature. |

`d` |
order of differences in penalty (generally 2) |

The Whittaker smoother family was first presented by Whittaker in 1923 for life tables, based on penalized least squares. These ideas were revived by Paul Eilers, Leiden University, in 2003. This approach is also known as Whittaker-Henderson smoothing.

The smoother attempts to both fit a curve that represents the raw data, but is penalized if subsequent points vary too much. Mathematically it is a large, but sparse optimization problem that can be expressed in a few lines of Matlab or R code.

A smoothed time series.

This is a version that avoids package 'SparseM'.

An R version, based on Matlab code by P. Eilers in 2002, has been published by Nicholas Lewin-Koh on the R-help mailing list in Feb. 2004, and in private communication to the author of this package.

P. H. C. Eilers (2003). A Perfect Smoother. Analytical Chemistry, Vol. 75, No. 14, pp. 3631–3636.

Wilson, D. I. (2006). The Black Art of Smoothing. Electrical and Automation Technology, June/July issue.

1 2 3 4 5 6 7 8 9 |

```
```

pracma documentation built on Jan. 30, 2018, 3:01 a.m.

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.