savgol.coef {mixer}R Documentation

coefficients of Savitzky-Golay smoothing filter for 1st/2nd derivative

Description

These coefficients will be used in function lfdr to calculate the derivatives of the estimated density curve.

Usage

data(savgol.coef)

Format

A list with two data frames. savgol.coef[[1]] and savgol.coef[[2]] are coefficients for 1st and 2nd derivatives, respectively. Each data frame include the following variables:

M
the order of the polynomial used to aproximate the desired function
nL
Given one point X, the number of data points to the left of X that are used to estimate the direvative at X
nR
Given one point X, the number of data points to the right of X that are used to estimate the direvative at X
V1 ... V41
coefficients

Details

Coefficeints for different cobinations of M, nL, and nR are provided. By default, funciton lfdr use M = 4, nL = nR = 5.

Source

the data is computed by the c runtine ``savgol'' from Numerical Recipe

References

Numerical Recipes in C: The Art of Scientific Computing, by William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling, Cambridge University Press; 2nd edition, 1992

Examples

data(savgol.coef)

[Package mixer version 1.01 Index]