generateGrid {pnd} | R Documentation |
Create a grid of points for a gradient / Jacobian
Description
Create a grid of points for a gradient / Jacobian
Usage
generateGrid(x, h, stencils, elementwise, vectorised)
Arguments
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 |
Value
A list with points for evaluation, summation weights for derivative computation, and indices for combining values.
Examples
generateGrid(1:4, h = 1e-5, elementwise = TRUE, vectorised = TRUE,
stencils = lapply(1:4, function(a) fdCoef(acc.order = a)))