emd_cs: Earth Mover's Distance (EMD) using the difference of...

View source: R/emd.R

emd_csR Documentation

Earth Mover's Distance (EMD) using the difference of cumulative sums method

Description

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.

Usage

emd_cs(dhist1, dhist2)

Arguments

dhist1

A discrete histogram as a dhist object

dhist2

A discrete histogram as a dhist object

Value

Earth Mover's Distance between the two input histograms

References

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


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.