Learn R Programming

Tools for Computational Optimal Transport in R

We introduce T4transport, an R package designed as a computational toolkit that compiles a collection of algorithms in the field of optimal transport.

Installation

  • Option 1 : released version from CRAN.
install.packages("T4transport")
  • Option 2 : development version from GitHub.
# install.packages("devtools")
devtools::install_github("kisungyou/T4transport")

Copy Link

Version

Install

install.packages('T4transport')

Monthly Downloads

502

Version

0.1.8

License

MIT + file LICENSE

Maintainer

Kisung You

Last Published

January 11th, 2026

Functions in T4transport (0.1.8)

gaussmedpd

Wasserstein Median of Gaussian Distributions in \(\mathbb{R}^p\)
histbary14C

Barycenter of Histograms by Cuturi and Doucet (2014)
imagebary15B

Barycenter of Images according to Benamou et al. (2015)
imagedist

Wasserstein Distance between Two Images
imagemed

Wasserstein Median of Images
imageinterp

Interpolation between Images
pwdist

Procrustes-Wasserstein Distance
pwbary

Procrustes-Wasserstein Barycenter
wassboot

Wasserstein Distance Estimation with Boostrapping
wasserstein

Wasserstein Distance via Linear Programming
imagebary14C

Barycenter of Images according to Cuturi & Doucet (2014)
imagebary

Barycenter of Images
ipot

Wasserstein Distance via Inexact Proximal Point Method
rbaryGD

Free-Support Barycenter by Riemannian Gradient Descent
rbary23L

Free-Support Barycenter by von Lindheim (2023)
img2measure

Extract a discrete measure from a gray-scale image matrix
rmedWB

Free-Support Median by Weiszfeld Update with Barycentric Projection
rmedIRLS

Free-Support Median by IRLS
sinkhorn

Wasserstein Distance via Entropic Regularization and Sinkhorn Algorithm
swdist

Sliced Wasserstein Distance
ecdfbary

Barycenter of Empirical CDFs
digit3

MNIST Images of Digit 3
gaussbarypd

Barycenter of Gaussian Distributions in \(\mathbb{R}^p\)
fbary14C

Fixed-Support Barycenter by Cuturi & Doucet (2014)
fiedler

Compute the fiedler vector of a point cloud
fbary15B

Fixed-Support Barycenter by Benamou et al. (2015)
ecdfmed

Wasserstein Median of Empirical CDFs
gaussbary1d

Barycenter of Gaussian Distributions in \(\mathbb{R}\)
gaussmed1d

Wasserstein Median of Gaussian Distributions in \(\mathbb{R}\)
gwdist

Gromov-Wasserstein Distance
gaussvis2d

Sampling from a Bivariate Gaussian Distribution for Visualization
histbary

Barycenter of Histograms
histdist

Distance between Histograms
histinterp

Interpolation between Histograms
histbary15B

Barycenter of Histograms by Benamou et al. (2015)
histmed

Wasserstein Median of Histograms
gwbary

Gromov-Wasserstein Barycenter
digits

MNIST Images of All Digits