wassDist {otinference}R Documentation

Compute the Wasserstein distance between to finite distributions.

Description

Compute the Wasserstein distance between to finite distributions.

Usage

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

Arguments

a, b

Vectors representing probability distributions.

distMat

Cost matrix.

p

cost exponent.

Value

The Wasserstein distance.


[Package otinference version 0.1.0 Index]