summaryrefslogtreecommitdiff
path: root/src/python/doc/wasserstein_distance_user.rst
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2020-01-14 06:36:54 +0100
committerGitHub <noreply@github.com>2020-01-14 06:36:54 +0100
commit5533e1f16c99512ff1966b31ba8f121d37462f52 (patch)
treeb429491ba602ec48a1f54f7fa3404f892d568cf3 /src/python/doc/wasserstein_distance_user.rst
parentc5ab277ebe1a0ce032567d4ca47e487f356705f3 (diff)
parent9bbbc84ab7208ccd69934445202538e34439b304 (diff)
Merge pull request #192 from tlacombe/wdist
Wdist
Diffstat (limited to 'src/python/doc/wasserstein_distance_user.rst')
-rw-r--r--src/python/doc/wasserstein_distance_user.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/doc/wasserstein_distance_user.rst b/src/python/doc/wasserstein_distance_user.rst
index a049cfb5..32999a0c 100644
--- a/src/python/doc/wasserstein_distance_user.rst
+++ b/src/python/doc/wasserstein_distance_user.rst
@@ -30,7 +30,7 @@ Note that persistence diagrams must be submitted as (n x 2) numpy arrays and mus
diag1 = np.array([[2.7, 3.7],[9.6, 14.],[34.2, 34.974]])
diag2 = np.array([[2.8, 4.45],[9.5, 14.1]])
- message = "Wasserstein distance value = " + '%.2f' % gudhi.wasserstein.wasserstein_distance(diag1, diag2, q=2., p=1.)
+ message = "Wasserstein distance value = " + '%.2f' % gudhi.wasserstein.wasserstein_distance(diag1, diag2, order=1., internal_p=2.)
print(message)
The output is: