summaryrefslogtreecommitdiff
path: root/src/python/gudhi/wasserstein.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/wasserstein.py')
-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