Package: transport 0.15-4

Dominic Schuhmacher

transport: Computation of Optimal Transport Plans and Wasserstein Distances

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.

Authors:Dominic Schuhmacher [aut, cre], Björn Bähre [aut], Nicolas Bonneel [aut], Carsten Gottschlich [aut], Valentin Hartmann [aut], Florian Heinemann [aut], Bernhard Schmitzer [aut], Jörn Schrieber [aut], Timo Wilm [ctb]

transport_0.15-4.tar.gz
transport_0.15-4.tar.gz(r-4.5-noble)transport_0.15-4.tar.gz(r-4.4-noble)
transport_0.15-4.tgz(r-4.4-emscripten)transport_0.15-4.tgz(r-4.3-emscripten)
transport.pdf |transport.html
transport/json (API)
NEWS

# Install 'transport' in R:
install.packages('transport', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/dschuhmacher/transport/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • random128a - Images to Illustrate the Use of transport.pgrid
  • random128b - Images to Illustrate the Use of transport.pgrid
  • random32a - Images to Illustrate the Use of transport.pgrid
  • random32b - Images to Illustrate the Use of transport.pgrid
  • random64a - Images to Illustrate the Use of transport.pgrid
  • random64b - Images to Illustrate the Use of transport.pgrid

6.89 score 4 stars 19 packages 364 scripts 2.4k downloads 2 mentions 42 exports 3 dependencies

Last updated 2 months agofrom:86b5d4ddb9. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-linux-x86_64OKNov 16 2024

Exports:ahaall.equal.pgridall.equal.ppall.equal.wppcompatiblecompatible.pgridcompatible.ppcompatible.wppdedegeneratematimagenorthwestcornerpgridplot_apolloniusplot.pgridplot.power_diagramplot.ppplot.ut_pgridplot.ut_wppplot.wpppower_diagramppret_messagerussellsemidiscretesemidiscrete1shieldingsubwassersteintransporttransport_applytransport_errortransport_tracktransport.defaulttransport.pgridtransport.pptransport.wpptrcontrolunbalancedunbalanced.pgridunbalanced.wppwassersteinwasserstein1dwpp

Dependencies:data.tableRcppRcppEigen

Readme and manuals

Help Manual

Help pageTopics
Optimal Transport in Various Formstransport-package
Solve Transportation Problem by Aurenhammer-Hoffmann-Aronov Methodaha transport_apply transport_error
Methods for Judging Near Equality of Objects of Class pgrid, pp or wppall.equal.pgrid all.equal.pp all.equal.wpp
Test whether Two Objects are Compatiblecompatible compatible.pgrid compatible.pp compatible.wpp
Plotting Matrices as Imagesmatimage
Print and Summary Methods for Objects of Class pgrid, pp and wppprint.pgrid print.pp print.wpp summary.pgrid summary.pp summary.wpp
Constructor for the pgrid Classpgrid
Class of Pixel Gridspgrid-object
Methods for Plotting Objects of Class pgrid, pp and wppplot.pgrid plot.pp plot.wpp
Plot Apollonius Diagramplot_apollonius
Plot Unbalanced Transport Informationplot.ut_pgrid
Plot Unbalanced Transport Informationplot.ut_wpp
Compute the Power Diagram of Weighted Sites in 2-Dimensional Spaceplot.power_diagram power_diagram
Constructor for the pp Classpp
Class of (Unweighted) Point Patternspp-object
Images to Illustrate the Use of transport.pgridrandom128 random128a random128b random32 random32a random32b random64 random64a random64b
Return Text Strings for lbfgs Return Codesret_message
Find Optimal Transport Partition Between pgrid and wpp.semidiscrete
Compute Semidiscrete Optimal Transport for Euclidean Distance Costsemidiscrete1
Compute Optimal Transport (Cost/Plan) Using the Multiscale Shielding Methodshielding
Compute starting solution for the transportation problemnorthwestcorner russell
Approximate Computation of Wasserstein Distances via Subsampling.subwasserstein
Find Optimal Transport Plan Between Two Objectstransport transport.default transport.pgrid transport.pp transport.wpp
Create a Dynamic Visualization of a Transference Plan Between Two pgridstransport_track
Set the Control Parameters Used by 'transport'.trcontrol
Unbalanced Optimal Transport Between Two Objectsunbalanced unbalanced.pgrid unbalanced.wpp
Compute the Wasserstein Distance Between Two Objectswasserstein
Compute the Wasserstein Distance Between Two Univariate Sampleswasserstein1d
Constructor for the wpp Classwpp
Class of Weighted Point Patternswpp-object