Package: T4transport 0.1.9

T4transport: Tools for Computational Optimal Transport

Transport theory has seen much success in many fields of statistics and machine learning. We provide a variety of algorithms to compute Wasserstein distance, barycenter, and others. See Peyré and Cuturi (2019) <doi:10.1561/2200000073> for the general exposition to the study of computational optimal transport.

Authors:Kisung You [aut, cre]

T4transport_0.1.9.tar.gz
T4transport_0.1.9.zip(r-4.7)T4transport_0.1.9.zip(r-4.6)T4transport_0.1.9.zip(r-4.5)
T4transport_0.1.9.tgz(r-4.6-x86_64)T4transport_0.1.9.tgz(r-4.6-arm64)T4transport_0.1.9.tgz(r-4.5-x86_64)T4transport_0.1.9.tgz(r-4.5-arm64)
T4transport_0.1.9.tar.gz(r-4.7-arm64)T4transport_0.1.9.tar.gz(r-4.7-x86_64)T4transport_0.1.9.tar.gz(r-4.6-arm64)T4transport_0.1.9.tar.gz(r-4.6-x86_64)
T4transport_0.1.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
T4transport/json (API)
NEWS

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

Bug tracker:https://github.com/kisungyou/t4transport/issues

Pkgdown/docs site:https://www.kisungyou.com

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • digit3 - MNIST Images of Digit 3
  • digits - MNIST Images of All Digits

On CRAN:

Conda:

openblascppopenmp

6.28 score 7 stars 1 packages 13 scripts 259 downloads 41 exports 4 dependencies

Last updated from:b7a36aedc6. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK229
linux-devel-x86_64OK198
source / vignettesOK339
linux-release-arm64OK198
linux-release-x86_64OK166
macos-release-arm64OK118
macos-release-x86_64OK304
macos-oldrel-arm64OK130
macos-oldrel-x86_64OK268
windows-develOK293
windows-releaseOK235
windows-oldrelOK203
wasm-releaseOK179

Exports:ecdfbaryecdfmedfbary14Cfbary14Cdistfbary15Bfbary15Bdistfiedlergaussbary1dgaussbarypdgaussmed1dgaussmedpdgaussvis2dgwbarygwdisthistbaryhistbary14Chistbary15Bhistdisthistinterphistmedimagebaryimagebary14Cimagebary15Bimagedistimageinterpimagemedimg2measureipotipotDpwbarypwdistrbary23LrbaryGDrmedIRLSrmedWBsinkhornsinkhornDswdistwassbootwassersteinwassersteinD

Dependencies:rbibutilsRcppRcppArmadilloRdpack

Computing the Wasserstein distance

Rendered frombasic_compute_distance.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2025-09-11
Started: 2025-07-19

Readme and manuals

Help Manual

Help pageTopics
MNIST Images of Digit 3digit3
MNIST Images of All Digitsdigits
Barycenter of Empirical CDFsecdfbary
Wasserstein Median of Empirical CDFsecdfmed
Fixed-Support Barycenter by Cuturi & Doucet (2014)fbary14C fbary14Cdist
Fixed-Support Barycenter by Benamou et al. (2015)fbary15B fbary15Bdist
Compute the fiedler vector of a point cloudfiedler
Barycenter of Gaussian Distributions in \mathbb{R}gaussbary1d
Barycenter of Gaussian Distributions in \mathbb{R}^pgaussbarypd
Wasserstein Median of Gaussian Distributions in \mathbb{R}gaussmed1d
Wasserstein Median of Gaussian Distributions in \mathbb{R}^pgaussmedpd
Sampling from a Bivariate Gaussian Distribution for Visualizationgaussvis2d
Gromov-Wasserstein Barycentergwbary
Gromov-Wasserstein Distancegwdist
Barycenter of Histogramshistbary
Barycenter of Histograms by Cuturi and Doucet (2014)histbary14C
Barycenter of Histograms by Benamou et al. (2015)histbary15B
Distance between Histogramshistdist
Interpolation between Histogramshistinterp
Wasserstein Median of Histogramshistmed
Barycenter of Imagesimagebary
Barycenter of Images according to Cuturi & Doucet (2014)imagebary14C
Barycenter of Images according to Benamou et al. (2015)imagebary15B
Wasserstein Distance between Two Imagesimagedist
Interpolation between Imagesimageinterp
Wasserstein Median of Imagesimagemed
Extract a discrete measure from a gray-scale image matriximg2measure
Wasserstein Distance via Inexact Proximal Point Methodipot ipotD
Procrustes-Wasserstein Barycenterpwbary
Procrustes-Wasserstein Distancepwdist
Free-Support Barycenter by von Lindheim (2023)rbary23L
Free-Support Wasserstein Barycenter by Barycentric-Projection UpdatesrbaryGD
Free-Support Median by IRLSrmedIRLS
Free-Support Median by Weiszfeld Update with Barycentric ProjectionrmedWB
Wasserstein Distance via Entropic Regularization and Sinkhorn Algorithmsinkhorn sinkhornD
Sliced Wasserstein Distanceswdist
Wasserstein Distance Estimation with Boostrappingwassboot
Wasserstein Distance via Linear Programmingwasserstein wassersteinD