muspan.region_based#

The muspan.region_based module provides tools for region-based analysis of spatial data. This module includes the following submodules:

Region building

generate_quadrats

Generates new objects in the domain that represent quadrats of a given size.

generate_hexgrid

Generates new objects in the domain that represent hexagons of a given side length.

Region-based analysis

quadrat_correlation_matrix

The Quadrat Correlation Matrix (QCM) describes correlations between the counts of different cell types within squares, or ‘quadrats’, of a specified edge length.

morisita_horn_index

Calculate the Morisita-Horn index for a given domain and label.