Learn R Programming

transport (version 0.12-1)

transport-package: Optimal Transport in Various Forms

Description

Solve optimal transport problems. Compute Wasserstein distances (a.k.a. Kantorovitch, Fortet--Mourier, Mallows, Earth Mover's, or minimal \(L_p\) distances), return the corresponding transport plans, and display them graphically. Objects that can be compared include grey-scale images, (weighted) point patterns, and mass vectors.

Arguments

Details

Package: transport
Type: Package
Version: 0.12-1
Date: 2019-08-07
License: GPL (>=2)
LazyData: yes

The main end-user function is transport. It computes optimal transport plans between images (class pgrid), point patterns (class pp), weighted point patterns (class wpp) and mass vectors, based on various algorithms. These transport plans can be ploted. The function wasserstein allows for the numerical computation of \(p\)-th order Wasserstein distances.

Most functions in this package are designed for data in two and higher dimensions. A quick tool for computing the \(p\)-th order Wasserstein distance between univariate samples is wasserstein1d.

References

See help page for the function transport.

Examples

Run this code
# NOT RUN {
##  See examples for function transport
# }

Run the code above in your browser using DataLab