numderiv: take the numeric derivative of a function

Description Usage Arguments Value See Also

View source: R/mixstock.R

Description

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

Usage

1
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


mixstock documentation built on May 2, 2019, 6:48 p.m.