summaryrefslogtreecommitdiff
path: root/examples/plot_free_support_barycenter.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plot_free_support_barycenter.py')
-rw-r--r--examples/plot_free_support_barycenter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/plot_free_support_barycenter.py b/examples/plot_free_support_barycenter.py
index b2e62c8..b6efc59 100644
--- a/examples/plot_free_support_barycenter.py
+++ b/examples/plot_free_support_barycenter.py
@@ -48,9 +48,9 @@ for i in range(N):
# Compute free support barycenter
# -------------
-k = 10 # number of Diracs of the barycenter
-X_init = np.random.normal(0., 1., (k, d)) # initial Dirac locations
-b = np.ones((k,)) / k # weights of the barycenter (it will not be optimized, only the locations are optimized)
+k = 10 # number of Diracs of the barycenter
+X_init = np.random.normal(0., 1., (k, d)) # initial Dirac locations
+b = np.ones((k,)) / k # weights of the barycenter (it will not be optimized, only the locations are optimized)
X = ot.lp.free_support_barycenter(measures_locations, measures_weights, X_init, b)