Wasserstein distance

Code for the computation of the 1- and 2-Wasserstein distances in 1D
999 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 (2025). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

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.