elsa_raster: calculate ELSA spatial statistic for raster dataset

View source: R/spatial_indices.R

elsa_rasterR Documentation

calculate ELSA spatial statistic for raster dataset

Description

calculate ELSA spatial statistic for vector dataset

Usage

elsa_raster(rast, window, matdist)

Arguments

rast

An integer raster or matrix representing the m categories (0,1,2,..., m)

window

A binary (0,1) matrix representing the neighbours spatial weights when working with rasters. The matrix must have odd dimensions.

matdist

A matrix representing the dissimilarity between the clusters. The matrix must be squared and the diagonal must be filled with zeros.

Value

A raster or a matrix: the local values of ELSA

Examples

# this is an internal function, no example provided

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