View source: R/differentiation.R
| fast_grad | R Documentation |
Provides a high-speed numerical gradient using forward or central differences.
fast_grad(f, x, diff_method = c("forward", "central"), ...)
f |
Function. The objective function. |
x |
Numeric vector. Parameters at which to evaluate the gradient. |
diff_method |
String. Differentiation method: "forward" or "central". |
... |
Additional arguments passed to |
A numeric vector of gradients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.