summaryrefslogtreecommitdiff
path: root/src/python/doc/wasserstein_distance_user.rst
diff options
context:
space:
mode:
authortlacombe <lacombe1993@gmail.com>2020-03-16 19:36:07 +0100
committertlacombe <lacombe1993@gmail.com>2020-03-16 19:36:07 +0100
commita253c0c4f54a9a148740ed9c20457df0ea43c842 (patch)
treeb958332e4c43bfedba3f85209703b5ba2a31570b /src/python/doc/wasserstein_distance_user.rst
parent66f0b08a8f8d5006f8d29352c169525cc53a22e6 (diff)
correction typo in usr.rst
Diffstat (limited to 'src/python/doc/wasserstein_distance_user.rst')
-rw-r--r--src/python/doc/wasserstein_distance_user.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/doc/wasserstein_distance_user.rst b/src/python/doc/wasserstein_distance_user.rst
index f43b2217..25e51d68 100644
--- a/src/python/doc/wasserstein_distance_user.rst
+++ b/src/python/doc/wasserstein_distance_user.rst
@@ -64,8 +64,8 @@ An index of -1 represents the diagonal.
message_cost = "Wasserstein distance value = %.2f" %cost
print(message_cost)
- dgm1_to_diagonal = matching[matching[:,0] == -1, 1]
- dgm2_to_diagonal = matching[matching[:,1] == -1, 0]
+ dgm1_to_diagonal = matchings[matchings[:,0] == -1, 1]
+ dgm2_to_diagonal = matchings[matchings[:,1] == -1, 0]
off_diagonal_match = np.delete(matchings, np.where(matchings == -1)[0], axis=0)
for i,j in off_diagonal_match: