summaryrefslogtreecommitdiff
path: root/src/python/gudhi/wasserstein/wasserstein.py
diff options
context:
space:
mode:
authortlacombe <lacombe1993@gmail.com>2021-04-27 10:02:26 +0200
committertlacombe <lacombe1993@gmail.com>2021-04-27 10:02:26 +0200
commitf3307644119172ea99ded6da94e57869cf9f1981 (patch)
tree9614d7c7fb077518d8594080e45d4dc10e9e70d3 /src/python/gudhi/wasserstein/wasserstein.py
parent0360f02ec1778daae53b50c50f223049fa294328 (diff)
parent29ffea359c52e2813c8e6887bda51874c36a56a5 (diff)
Merge branch 'essential_part_in_wasserstein' of https://github.com/tlacombe/gudhi-devel into essential_part_in_wasserstein
merging typo correction
Diffstat (limited to 'src/python/gudhi/wasserstein/wasserstein.py')
-rw-r--r--src/python/gudhi/wasserstein/wasserstein.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/gudhi/wasserstein/wasserstein.py b/src/python/gudhi/wasserstein/wasserstein.py
index a89c7efd..3abecfe6 100644
--- a/src/python/gudhi/wasserstein/wasserstein.py
+++ b/src/python/gudhi/wasserstein/wasserstein.py
@@ -131,7 +131,7 @@ def _cost_and_match_essential_parts(X, Y, idX, idY, order, axis):
:param Y: (n x 2) numpy.array (dgm points)
:param idX: indices to consider for this one dimensional OT problem (in X)
:param idY: indices to consider for this one dimensional OT problem (in Y)
- :param order: exponent for Wasserstein distanc ecomputation
+ :param order: exponent for Wasserstein distance computation
:param axis: must be 0 or 1, correspond to the coordinate which is finite.
:returns: cost (float) and match for points with *one* infinite coordinate.
@@ -267,7 +267,7 @@ def wasserstein_distance(X, Y, matching=False, order=1., internal_p=np.inf, enab
# Check essential part and enable autodiff together
if enable_autodiff and keep_essential_parts:
warnings.warn('''enable_autodiff=True and keep_essential_parts=True are incompatible together.
- keep_essential_parts is set to False: only points with finite coordiantes are considered
+ keep_essential_parts is set to False: only points with finite coordinates are considered
in the following.
''')
keep_essential_parts = False