numderiv: take the numeric derivative of a function

View source: R/mixstock.R View source: R/RCS/turtle.R

numderivR Documentation

take the numeric derivative of a function

Description

takes the numeric derivative (gradient) of a function by finite differencing

Usage

numderiv(p, fn, eps = 1e-05, ...)

Arguments

p

parameter vector

fn

function

eps

finite-difference increment

...

other arguments to fn

Value

numeric vector representing the approximate gradient of the function with respect to the parameters

See Also

numericDeriv


bbolker/mixstock documentation built on July 23, 2024, 12:18 p.m.