summaryrefslogtreecommitdiff
path: root/src/python/doc/wasserstein_distance_user.rst
diff options
context:
space:
mode:
authortlacombe <lacombe1993@gmail.com>2020-03-16 21:17:38 +0100
committertlacombe <lacombe1993@gmail.com>2020-03-16 21:17:38 +0100
commit60d11e3f06e08b66e49997f389c4dc01b00b793f (patch)
tree31a90e507dc1d293362f291a438b14f22de23217 /src/python/doc/wasserstein_distance_user.rst
parenta253c0c4f54a9a148740ed9c20457df0ea43c842 (diff)
correction of 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 25e51d68..a9b21fa5 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 = matchings[matchings[:,0] == -1, 1]
- dgm2_to_diagonal = matchings[matchings[:,1] == -1, 0]
+ dgm1_to_diagonal = matchings[matchings[:,1] == -1, 0]
+ dgm2_to_diagonal = matchings[matchings[:,0] == -1, 1]
off_diagonal_match = np.delete(matchings, np.where(matchings == -1)[0], axis=0)
for i,j in off_diagonal_match: