Description Usage Arguments Value Author(s) Examples
Locality-aware Getis-Ord G* statistics.
1 | GetisOrdLocalStats(r, focus_matrix)
|
r |
Input raster |
focus_matrix |
Square matrix with odd number of rows/column and boolean cells. |
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 |
MEAN |
A raster where each cell corresponds to a focal mean from area
around the cell given by the matrix |
focus |
Copy of the |
Viliam Simko
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.