Wasserstein distance

Code for the computation of the 1- and 2-Wasserstein distances in 1D
1K Downloads
Updated 3 Apr 2024

This code computes the 1- and 2-Wasserstein distances between two uniform probability distributions given through samples. Graphically speaking it measures the distance between the (normalized) histograms of the input vectors. See the GitHub repository for more details.

Cite As

Niklas Kolbe (2026). Wasserstein distance (https://github.com/nklb/wasserstein-distance), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.1

description edited

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.