moranI_matrix_window: Moran I calculated on a matrix with a given window
Description
Moran I calculated on a matrix with a given window
Usage
moranI_matrix_window(mat, window)
Value
a double, the value of Moran I
Arguments
- mat
a matrix
- window
the window to use to define neighbours. 0 can be used to indicate that a cell is not a neighbour