summaryrefslogtreecommitdiff
path: root/examples/barycenters/plot_free_support_barycenter.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/barycenters/plot_free_support_barycenter.py')
-rw-r--r--examples/barycenters/plot_free_support_barycenter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/barycenters/plot_free_support_barycenter.py b/examples/barycenters/plot_free_support_barycenter.py
index 64b89e4..27ddc8e 100644
--- a/examples/barycenters/plot_free_support_barycenter.py
+++ b/examples/barycenters/plot_free_support_barycenter.py
@@ -4,7 +4,7 @@
2D free support Wasserstein barycenters of distributions
====================================================
-Illustration of 2D Wasserstein barycenters if discributions that are weighted
+Illustration of 2D Wasserstein barycenters if distributions are weighted
sum of diracs.
"""
@@ -21,7 +21,7 @@ import ot
##############################################################################
# Generate data
# -------------
-#%% parameters and data generation
+
N = 3
d = 2
measures_locations = []
@@ -46,7 +46,7 @@ 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