A function to compute an optimal cellwidth close to an initial suggestion. This maximises the efficiency of the MCMC algorithm when in the control argument of the function survspat, the option gridded is set to TRUE
getOptCellwidth(dat, cellwidth, ext = 2, plot = TRUE, boundingbox = NULL)
the optimum cell width
any spatial data object whose bounding box can be computed using the function bbox.
an initial suggested cellwidth
the extension parameter for the FFT transform, set to 2 by default
whether to plot the grid and data to illustrate the optimal grid
optional bounding box over which to construct computational grid, supplied as an object on which the function 'bbox' returns the bounding box