Description Usage Arguments Details Value Examples
View source: R/auxiliar_functions.r
gradient
uses forward difference to approximate the vector of derivatives of fun
at param
.
1 |
fun |
Function whose gradient vector is to be approximated. |
param |
Numeric vector of parameters where |
... |
Any additional arguments passed to |
fun0 |
The value of |
The forward difference uses a step-size of the cubic root of machine epsilon. No scaling is applied to parameters.
A numeric row matrix whose size is determined by the length of param
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.