calc_deriv: calc_deriv

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Calculate the derivative of function f: f'(x) with an increment of machine epsilon

Usage

1
calc_deriv(x, f, lower, upper, ...)

Arguments

x

a specific x point to find the derivative at

f

a function to calculate the derivative of

lower

the lower bound domain to check with f

upper

the upper bound domain to check with f

...

additional variables needed in the f function

Value

a numeric value that represents the derivative at a certain point

Examples

1
calc_deriv(5, dnorm, -5, 5, mean=5, sd=1)

andrea2910/ars documentation built on June 17, 2021, 3:32 a.m.