(n_samples)
| 7 | |
| 8 | |
| 9 | def setup(n_samples): |
| 10 | rng = np.random.RandomState(789465132) |
| 11 | x = rng.randn(n_samples, 2) |
| 12 | y = rng.randn(n_samples, 2) |
| 13 | |
| 14 | a = ot.utils.unif(n_samples) |
| 15 | M = ot.dist(x, y) |
| 16 | return a, M |
| 17 | |
| 18 | |
| 19 | if __name__ == "__main__": |
no test coverage detected