wassDist: Compute the Wasserstein distance between to finite...

Description Usage Arguments Value

Description

Compute the Wasserstein distance between to finite distributions.

Usage

1
wassDist(a, b, distMat, p = 1)

Arguments

a, b

Vectors representing probability distributions.

distMat

Cost matrix.

p

cost exponent.

Value

The Wasserstein distance.


otinference documentation built on May 2, 2019, 3:36 p.m.