wass.1: Calculate the first Wasserstein metric (Earth Mover's...

Description Usage Arguments Value

Description

wass.1() takes in two numeric vectors and returns a single numeric distance metric. The metric is equivalent to the sum of the absolute difference in area between the empirical distribution functions of the two samples. This total area is found by calculating left Riemann sums.

Usage

1
wass.1(x, y)

Arguments

x

the first sample

y

the second sample

Value

the first Wasserstein distance


ash129/LAPP documentation built on May 10, 2019, 1:52 p.m.