Package: T4transport 0.1.2

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.2.tar.gz
T4transport_0.1.2.tar.gz(r-4.5-noble)T4transport_0.1.2.tar.gz(r-4.4-noble)
T4transport_0.1.2.tgz(r-4.4-emscripten)T4transport_0.1.2.tgz(r-4.3-emscripten)
T4transport.pdf |T4transport.html
T4transport/json (API)
NEWS

# Install 'T4transport' in R:
install.packages('T4transport', repos = 'https://cloud.r-project.org')
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

1.70 score 1 stars 249 downloads 24 exports 18 dependencies

Last updated 2 years agofrom:781190454c. Checks:3 OK. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 11 2025
R-4.5-linux-x86_64OKMar 11 2025
R-4.4-linux-x86_64OKMar 11 2025

Exports:bary14Cbary14Cdistbary15Bbary15Bdistecdfbaryecdfmedgaussbary1dgaussbarypdgaussmed1dgaussmedpdgaussvis2dhistbary14Chistbary15Bhistmed22Yimagebary14Cimagebary15Bimagemed22YipotipotDsinkhornsinkhornDswdistwassersteinwassersteinD

Dependencies:bitbit64cliCVXRECOSolveRgmplatticelpSolveMatrixosqpR6rbibutilsRcppRcppArmadilloRcppEigenRdpackRmpfrscs

Citation

To cite package ‘T4transport’ in publications use:

You K (2023). T4transport: Tools for Computational Optimal Transport. R package version 0.1.2, https://CRAN.R-project.org/package=T4transport.

Corresponding BibTeX entry:

  @Manual{,
    title = {T4transport: Tools for Computational Optimal Transport},
    author = {Kisung You},
    year = {2023},
    note = {R package version 0.1.2},
    url = {https://CRAN.R-project.org/package=T4transport},
  }

Readme and manuals

T4transport

We introduce T4transport, an R package designed as a computational toolkit for 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")

Help Manual

Help pageTopics
Barycenter by Cuturi & Doucet (2014)bary14C bary14Cdist
Barycenter by Benamou et al. (2015)bary15B bary15Bdist
MNIST Images of Digit 3digit3
MNIST Images of All Digitsdigits
Barycenter of Empirical CDFsecdfbary
Wasserstein Median of Empirical CDFsecdfmed
Barycenter of Gaussian Distributions in \mathbf{R}gaussbary1d
Barycenter of Gaussian Distributions in \mathbf{R}^pgaussbarypd
Wasserstein Median of Gaussian Distributions in \mathbf{R}gaussmed1d
Wasserstein Median of Gaussian Distributions in \mathbf{R}^pgaussmedpd
Sampling from a Bivariate Gaussian Distribution for Visualizationgaussvis2d
Barycenter of Histograms by Cuturi & Doucet (2014)histbary14C
Barycenter of Histograms by Benamou et al. (2015)histbary15B
Wasserstein Median of Histograms by You et al. (2022)histmed22Y
Barycenter of Images according to Cuturi & Doucet (2014)imagebary14C
Barycenter of Images according to Benamou et al. (2015)imagebary15B
Wasserstein Median of Images by You et al. (2022)imagemed22Y
Wasserstein Distance by Inexact Proximal Point Methodipot ipotD
Wasserstein Distance by Entropic Regularizationsinkhorn sinkhornD
Sliced Wasserstein Distanceswdist
Wasserstein Distance between Empirical Measureswasserstein wassersteinD