MoransI (MoransI v0.1.2)
View SourceMoran's I spatial autocorrelation index for image data.
Summary
Functions
Compute global Moran's I for an image.
Compute local Moran's I (LISA - Local Indicators of Spatial Association) for each pixel.
Functions
Compute global Moran's I for an image.
Parameters
image: 2D list of numeric values representing the imageoptions: Keyword list of options:connectivity::queen(8-connectivity, default) or:rook(4-connectivity):parallel: boolean, whether to use parallel processing (default: true)
Returns
A map containing:
:morans_i: The Moran's I statistic:expected_i: Expected value under null hypothesis:variance: Variance of Moran's I:z_score: Standardized z-score:p_value: Approximate p-value (two-tailed)
Compute local Moran's I (LISA - Local Indicators of Spatial Association) for each pixel.
Parameters
image: 2D list of numeric values representing the imageoptions: Keyword list of options:connectivity::queen(8-connectivity, default) or:rook(4-connectivity):parallel: boolean, whether to use parallel processing (default: true):chunk_size: integer, size of chunks for parallel processing (default: 1000)
Returns
A 2D list of maps, each containing:
:local_i: Local Moran's I value for the pixel:z_score: Standardized z-score:p_value: Approximate p-value:cluster_type: Type of spatial cluster (:hh, :ll, :hl, :lh, or :ns)