get.deriv.smooth.hist: Gets nth derivative of smoothed histogram

View source: R/smooth_hist.R

get.deriv.smooth.histR Documentation

Gets nth derivative of smoothed histogram

Description

This function outputs the nth derivative of a histogram smooth.

Usage

get.deriv.smooth.hist(x, coefs, knots, deg = 4, deriv.deg = 1)

Arguments

x

values from smooth_hist

coefs

Coefficients from GAM from smooth_hist

knots

Number of knots fit for GAM

deg

Degree of polynomials

deriv.deg

The degree of the derivative.

Value

Derivative of smoothed histogram

Examples

data(smoothed_histogram)
dy<-get.deriv.smooth.hist(xvals, 
coefs=s.hist$coefs,
knots=s.hist$knots,
deg=s.hist$deg,
deriv.deg=1)

muschellij2/WhiteStripe documentation built on May 10, 2024, 1:31 a.m.