getOptCellwidth | R Documentation |
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)
dat |
any spatial data object whose bounding box can be computed using the function bbox. |
cellwidth |
an initial suggested cellwidth |
ext |
the extension parameter for the FFT transform, set to 2 by default |
plot |
whether to plot the grid and data to illustrate the optimal grid |
boundingbox |
optional bounding box over which to construct computational grid, supplied as an object on which the function 'bbox' returns the bounding box |
the optimum cell width
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.