muspan.distribution#

The muspan.distribution module provides tools for probability density estimation, distance metrics, and correlation mapping. This module includes the following submodules:

Generating distributions from spatial data

generate_distribution

Generate a spatial distribution heatmap for a given domain.

kernel_density_estimation

Perform kernel density estimation (KDE) on a given domain.

Comparing distributions

kl_divergence

Compute the Kullback-Leibler Divergence between two distributions.

Summarising spatial data

summarise_distribution

Summarises the spatial distribution of objects within a given domain providing the mean centre, standard distance, and standard deviational ellipses.

Optimal transport

sliced_wasserstein_distance

Compute the Sliced Wasserstein Distance between two populations within a given domain.