summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo Lacombe <lacombe1993@gmail.com>2019-10-18 22:31:38 +0200
committerGitHub <noreply@github.com>2019-10-18 22:31:38 +0200
commite0feb6725f3970eea66c8e3268ec1a55020279bd (patch)
tree83673b891cef6d11a7a10ebe6070a47a6f671358 /src
parenta3e609d04f296f80edf622ba1d6e0efe71eb8c41 (diff)
Update src/python/gudhi/wasserstein.py
typo correction Co-Authored-By: Marc Glisse <marc.glisse@inria.fr>
Diffstat (limited to 'src')
-rw-r--r--src/python/gudhi/wasserstein.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/wasserstein.py b/src/python/gudhi/wasserstein.py
index 32d236c5..445772e4 100644
--- a/src/python/gudhi/wasserstein.py
+++ b/src/python/gudhi/wasserstein.py
@@ -18,7 +18,7 @@ except ImportError:
def _proj_on_diag(X):
'''
:param X: (n x 2) array encoding the points of a persistent diagram.
- :returns: (n x 2) arary encoding the (respective orthogonal) projections of the points onto the diagonal
+ :returns: (n x 2) array encoding the (respective orthogonal) projections of the points onto the diagonal
'''
Z = (X[:,0] + X[:,1]) / 2.
return np.array([Z , Z]).T