summaryrefslogtreecommitdiff
path: root/src/python/doc/wasserstein_distance_user.rst
diff options
context:
space:
mode:
authortlacombe <lacombe1993@gmail.com>2020-03-31 18:08:05 +0200
committertlacombe <lacombe1993@gmail.com>2020-03-31 18:08:05 +0200
commitaf76331b5b4c709f46a3d705320bfedcf3a60924 (patch)
tree5ebc4c0c9e02a10456c537517e6dbf94e29bbb92 /src/python/doc/wasserstein_distance_user.rst
parent266f1eb706ecf31733acbcdded3b04d8d270fb60 (diff)
correction typo user.rst
Diffstat (limited to 'src/python/doc/wasserstein_distance_user.rst')
-rw-r--r--src/python/doc/wasserstein_distance_user.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/doc/wasserstein_distance_user.rst b/src/python/doc/wasserstein_distance_user.rst
index a077f9a4..c6d49db1 100644
--- a/src/python/doc/wasserstein_distance_user.rst
+++ b/src/python/doc/wasserstein_distance_user.rst
@@ -128,7 +128,7 @@ per diagram).
Basic example
-------------
-This example computes the Frechet mean (aka Wasserstein barycenter) between
+This example estimates the Frechet mean (aka Wasserstein barycenter) between
four persistence diagrams.
It is initialized on the 4th diagram.
As the algorithm is not convex, its output depends on the initialization and
@@ -143,7 +143,7 @@ Note that persistence diagrams must be submitted as
.. testcode::
- import gudhi.barycenter
+ from gudhi.wasserstein.barycenter import lagrangian_barycenter
import numpy as np
dg1 = np.array([[0.2, 0.5]])
@@ -151,7 +151,7 @@ Note that persistence diagrams must be submitted as
dg3 = np.array([[0.3, 0.6], [0.7, 0.8], [0.2, 0.3]])
dg4 = np.array([])
pdiagset = [dg1, dg2, dg3, dg4]
- bary = gudhi.wasserstein.barycenter.lagrangian_barycenter(pdiagset=pdiagset,init=3)
+ bary = lagrangian_barycenter(pdiagset=pdiagset,init=3)
message = "Wasserstein barycenter estimated:"
print(message)