Package: T4transport 0.1.8

Kisung You

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.8.tar.gz
T4transport_0.1.8.tar.gz(r-4.7-arm64)T4transport_0.1.8.tar.gz(r-4.7-x86_64)T4transport_0.1.8.tar.gz(r-4.6-arm64)T4transport_0.1.8.tar.gz(r-4.6-x86_64)
T4transport_0.1.8.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://cran.r-universe.dev', 'https://cloud.r-project.org'))

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:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

openblascppopenmp

3.89 score 1 stars 1 packages 13 scripts 304 downloads 41 exports 4 dependencies

Last updated from:749bd17574. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK203
linux-devel-x86_64OK195
source / vignettesOK403
linux-release-arm64OK204
linux-release-x86_64OK174
wasm-releaseOK163

Exports:ecdfbaryecdfmedfbary14Cfbary14Cdistfbary15Bfbary15Bdistfiedlergaussbary1dgaussbarypdgaussmed1dgaussmedpdgaussvis2dgwbarygwdisthistbaryhistbary14Chistbary15Bhistdisthistinterphistmedimagebaryimagebary14Cimagebary15Bimagedistimageinterpimagemedimg2measureipotipotDpwbarypwdistrbary23LrbaryGDrmedIRLSrmedWBsinkhornsinkhornDswdistwassbootwassersteinwassersteinD

Dependencies:rbibutilsRcppRcppArmadilloRdpack

Computing the Wasserstein distance

Rendered frombasic_compute_distance.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2025-11-13
Started: 2025-11-13

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 Barycenter by Riemannian Gradient DescentrbaryGD
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