Learn R Programming

geocmeans (version 0.3.4)

Elsa_categorical_matrix_window: Elsa statistic calculated on a matrix with a given window

Description

method described here : https://doi.org/10.1016/j.spasta.2018.10.001

Usage

Elsa_categorical_matrix_window(mat, window, dist)

Value

a NumericVector : the local values of ELSA

Arguments

mat

an IntegerMatrix, must be filled with integer, -1 indicates NA values, categories must start at 0

window

the window to use to define neighbours. 0 can be used to indicate that a cell is not a neighbour

dist

a distance matrix between the categories