calc_raster_spinconsistency: calculate spatial inconsistency for raster

View source: R/spatial_indices.R

calc_raster_spinconsistencyR Documentation

calculate spatial inconsistency for raster

Description

Calculate the spatial inconsistency sum for a set of rasters

Usage

calc_raster_spinconsistency(
  matrices,
  window,
  adj = FALSE,
  dataset = NULL,
  mindist = 1e-11
)

Arguments

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.

Value

A float: the sum of spatial inconsistency

Examples

# this is an internal function, no example provided

geocmeans documentation built on Sept. 12, 2023, 9:06 a.m.