summaryrefslogtreecommitdiff
path: root/test/test_gromov.py
diff options
context:
space:
mode:
authorNicolas Courty <Nico@MacBook-Pro-de-Nicolas.local>2017-09-01 11:20:34 +0200
committerNicolas Courty <Nico@MacBook-Pro-de-Nicolas.local>2017-09-01 11:20:34 +0200
commitab6ed1df93cd78bb7f1a54282103d4d830e68bcb (patch)
treebbcff976e21c2e89a4656c542506cd0f728309bb /test/test_gromov.py
parent4ec5b339ef527d4d49a022ddf57b38dff037548c (diff)
docstrings and naming
Diffstat (limited to 'test/test_gromov.py')
-rw-r--r--test/test_gromov.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_gromov.py b/test/test_gromov.py
index 75eeaab..c26d898 100644
--- a/test/test_gromov.py
+++ b/test/test_gromov.py
@@ -10,18 +10,18 @@ import ot
def test_gromov():
- n = 50 # nb samples
+ n_samples = 50 # nb samples
mu_s = np.array([0, 0])
cov_s = np.array([[1, 0], [0, 1]])
- xs = ot.datasets.get_2D_samples_gauss(n, mu_s, cov_s)
+ xs = ot.datasets.get_2D_samples_gauss(n_samples, mu_s, cov_s)
- xt = [xs[n - (i + 1)] for i in range(n)]
+ xt = [xs[n_samples - (i + 1)] for i in range(n_samples)]
xt = np.array(xt)
- p = ot.unif(n)
- q = ot.unif(n)
+ p = ot.unif(n_samples)
+ q = ot.unif(n_samples)
C1 = ot.dist(xs, xs)
C2 = ot.dist(xt, xt)