get.deriv.smooth.hist: Gets $n^th$ derivative of smoothed histogram

Description Usage Arguments Value Examples

View source: R/smooth_hist.R

Description

This function outputs the nth derivative of a histogram smooth.

Usage

1
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

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

neuroconductor-devel-releases/WhiteStripe documentation built on May 6, 2020, 3:21 p.m.