(self)
| 459 | assert_(vals.shape == (10,)) |
| 460 | |
| 461 | def test_multivariate_normal(self): |
| 462 | rg = self._create_rng().rg |
| 463 | mean = [0, 0] |
| 464 | cov = [[1, 0], [0, 100]] # diagonal covariance |
| 465 | x = rg.multivariate_normal(mean, cov, 5000) |
| 466 | assert_(x.shape == (5000, 2)) |
| 467 | x_zig = rg.multivariate_normal(mean, cov, 5000) |
| 468 | assert_(x.shape == (5000, 2)) |
| 469 | x_inv = rg.multivariate_normal(mean, cov, 5000) |
| 470 | assert_(x.shape == (5000, 2)) |
| 471 | assert_((x_zig != x_inv).any()) |
| 472 | |
| 473 | def test_multinomial(self): |
| 474 | rg = self._create_rng().rg |
nothing calls this directly
no test coverage detected