Learn R Programming

geocmeans (version 0.3.4)

elsa_raster: calculate ELSA spatial statistic for raster dataset

Description

calculate ELSA spatial statistic for vector dataset

Usage

elsa_raster(rast, window, matdist)

Value

A raster or a matrix: the local values of ELSA

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.

Examples

Run this code
# this is an internal function, no example provided

Run the code above in your browser using DataLab