numderiv {mixstock}R 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


[Package mixstock version 0.9 Index]