ott.geometry.costs.CostFn.barycenter#

CostFn.barycenter(weights, xs)[source]#

Barycentric operator.

Parameters
  • weights (Array) – Convex set of weights.

  • xs (Array) – Points.

Return type

Array

Returns

The barycenter of xs using weights coefficients.