GetisOrdLocalStats: Locality-aware Getis-Ord G* statistics.

Description Usage Arguments Value Author(s) Examples

Description

Locality-aware Getis-Ord G* statistics.

Usage

1
GetisOrdLocalStats(r, focus_matrix)

Arguments

r

Input raster

focus_matrix

Square matrix with odd number of rows/column and boolean cells.

Value

Returns a list used in the function GetisOrd:

rmean

Global mean of all raster cells.

n

Number of all cells within the raster.

SD

A raster where each cell corresponds to a focal standard deviation from area around the cell given by the matrix focus.

MEAN

A raster where each cell corresponds to a focal mean from area around the cell given by the matrix focus.

focus

Copy of the focus matrix given as input parameter.

Author(s)

Viliam Simko

Examples

1
2
3
4
5
6
library(raster)
r <- raster( matrix(rnorm(400), 20, 20) )
w <- weight_matrix_circular_fade(7, 2)
f <- weight_matrix_circular(11)
st <- GetisOrdLocalStats(r, f)
plot(GetisOrd(r, w, st))

biggis-project/soh documentation built on May 12, 2019, 8:30 p.m.