View source: R/spatial_indices.R
calc_raster_spinconsistency | R Documentation |
Calculate the spatial inconsistency sum for a set of rasters
calc_raster_spinconsistency(
matrices,
window,
adj = FALSE,
dataset = NULL,
mindist = 1e-11
)
matrices |
A list of matrices |
window |
The window to use to define spatial neighbouring |
adj |
A boolean indicating if the adjusted version of the algorithm must be calculated |
dataset |
A list of matrices with the original data (if adj = TRUE) |
mindist |
When adj is true, a minimum value for distance between two observations. If two neighbours have exactly the same values, then the euclidean distance between them is 0, leading to an infinite spatial weight. In that case, the minimum distance is used instead of 0. |
A float: the sum of spatial inconsistency
# this is an internal function, no example provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.