Learn R Programming

⚠️There's a newer version (0.15-4) of this package.Take me there.

transport (version 0.12-1)

Computation of Optimal Transport Plans and Wasserstein Distances

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 transference plans, and display them graphically. Objects that can be compared include grey-scale images, (weighted) point patterns, and mass vectors.

Copy Link

Version

Install

install.packages('transport')

Monthly Downloads

2,047

Version

0.12-1

License

GPL (>= 2)

Maintainer

Dominic Schuhmacher

Last Published

August 19th, 2019

Functions in transport (0.12-1)

aha

Solve Transportation Problem by Aurenhammer--Hoffmann--Aronov Method
pgrid-object

Class of Pixel Grids
random

Images to Illustrate the Use of transport.pgrid
pp

Constructor for the pp Class
power_diagram

Compute the Power Diagram of Weighted Sites in 2-Dimensional Space
pp-object

Class of (Unweighted) Point Patterns
all.equal (transport objects)

Methods for Judging Near Equality of Objects of Class pgrid, pp or wpp
subwasserstein

Approximate Computation of Wasserstein Distances via Subsampling.
starting solutions

Compute starting solution for the transportation problem
pgrid

Constructor for the pgrid Class
semidiscrete1

Compute Semidiscrete Optimal Transport for Euclidean Distance Cost
methods

Print and Summary Methods for Objects of Class pgrid, pp and wpp
compatible

Test whether Two Objects are Compatible
plot

Methods for Plotting Objects of Class pgrid, pp and wpp
plot_apollonius

Plot Apollonius Diagram
trcontrol

Set the Control Parameters Used by transport.
shielding

Compute Optimal Transport (Cost/Plan) Using the Multiscale Shielding Method
wasserstein

Compute the Wasserstein Distance Between Two Objects
transport

Find Optimal Transport Plan Between Two Objects
semidiscrete

Find Optimal Transport Partition Between pgrid and wpp.
transport_track

Create a Dynamic Visualization of a Transference Plan Between Two pgrids
ret_message

Return Text Strings for lbfgs Return Codes
transport-internal

Internal Functions in Package ‘transport’
transport-package

Optimal Transport in Various Forms
wasserstein1d

Compute the Wasserstein Distance Between Two Univariate Samples
wpp-object

Class of Weighted Point Patterns
wpp

Constructor for the wpp Class