emd_cs | R Documentation |
Takes two discrete histograms and calculates the Wasserstein / Earth Mover's Distance between the two histograms by summing the absolute difference between the two cumulative histograms.
emd_cs(dhist1, dhist2)
dhist1 |
A discrete histogram as a |
dhist2 |
A discrete histogram as a |
Earth Mover's Distance between the two input histograms
Calculation of the Wasserstein Distance Between Probability Distributions on the Line S. S. Vallender, Theory of Probability & Its Applications 1974 18:4, 784-786 http://dx.doi.org/10.1137/1118101
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.