generateGrid | R Documentation |
Create a grid of points for a gradient / Jacobian
generateGrid(x, h, stencils, elementwise, vectorised)
x |
Numeric vector or scalar: the point(s) at which the derivative is estimated.
|
h |
Numeric or character specifying the step size(s) for the numerical
difference or a method of automatic step determination ( |
stencils |
A list of outputs from |
elementwise |
Logical: is the domain effectively 1D, i.e. is this a mapping
|
vectorised |
Logical: if |
A list with points for evaluation, summation weights for derivative computation, and indices for combining values.
generateGrid(1:4, h = 1e-5, elementwise = TRUE, vectorised = TRUE,
stencils = lapply(1:4, function(a) fdCoef(acc.order = a)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.