ott.geometry.costs.CostFn.barycenter# CostFn.barycenter(weights, xs)[source]# Barycentric operator. Parameters: weights (Array) – Convex set of weights. xs (Array) – Points. Return type: Tuple[Array, Any] Returns: A list, whose first element is the barycenter of xs using weights coefficients, followed by auxiliary information on the convergence of the algorithm.