museotoolbox.stats.Moran.__init__¶
-
Moran.
__init__
(in_image, in_image_mask=False, lag=1, weights=False)[source]¶ Compute Moran’s I for raster.
- Parameters
in_image (str.) – A filename or path of a raster file. It could be any file that GDAL can open.
lag (int, optional (default=1)) – The distance from the cell.
weights (False or array-like, optional (default=False)) – Weights with the same shape as the square size.