Learn R Programming

SpatialKWD (version 0.4.1)

Spatial KWD for Large Spatial Maps

Description

Contains efficient implementations of Discrete Optimal Transport algorithms for the computation of Kantorovich-Wasserstein distances between pairs of large spatial maps (Bassetti, Gualandi, Veneroni (2020), ). All the algorithms are based on an ad-hoc implementation of the Network Simplex algorithm. The package has four main helper functions: compareOneToOne() (to compare two spatial maps), compareOneToMany() (to compare a reference map with a list of other maps), compareAll() (to compute a matrix of distances between a list of maps), and focusArea() (to compute the KWD distance within a focus area). In non-convex maps, the helper functions first build the convex-hull of the input bins and pad the weights with zeros.

Copy Link

Version

Install

install.packages('SpatialKWD')

Monthly Downloads

104

Version

0.4.1

License

EUPL (>= 1.2)

Maintainer

Stefano Gualandi

Last Published

December 9th, 2022

Functions in SpatialKWD (0.4.1)

Histogram2D-class

Two Dimensional Histogram for Spatial Data
CompareAll-function

Compare a given set of spatial histograms
FocusArea-function

Compute the KWD tranport distance within a given focus area
SpatialKWD-package

Kantorovich-Wasserstein Distances for Large Spatial Maps
Solver-class

Spatial-KWD Solver
CompareOneToMany-function

Compare a reference spatial histogram to other histograms
CompareOneToOne-function

Compare a pair of spatial histograms