So that all path-potentials end up at same global min and then generate potential surface with interpolation on a grid.
Arguments
- resultB
Result from
path_integral_B()
.- n
The number of equally spaced points in each axis, at which the landscape is to be estimated.
- digits
Currently, the raw sample points in some regions are too dense that may crashes interpolation. To avoid this problem, only one point of all with the same first several digits. is kept. Use this parameter to indicate how many digits are considered. Note that this is a temporary solution and might be changed in the near future.
- linear
logical – indicating whether linear or spline interpolation should be used.
- ...
Other parameters passed to
akima::interp()
Value
list with 3 components:
- x,y
vectors of x- and y- coordinates of output grid, the same as the input argument
xo
, oryo
, if present. Otherwise, their default, a vector 40 points evenly spaced over the range of the inputx
.- z
matrix of fitted z-values. The value
z[i,j]
is computed at the x,y pointxo[i], yo[j]
.z
has dimensionslength(xo)
timeslength(yo)
.
If input is a SpatialPointsDataFrame
a
SpatialPixelssDataFrame
is returned.