(self)
| 529 | assert_almost_equal(a.mean(0), average(a, weights=w)) |
| 530 | |
| 531 | def test_object_no_weights(self): |
| 532 | a = np.array([decimal.Decimal(x) for x in range(10)]) |
| 533 | m = average(a) |
| 534 | assert m == decimal.Decimal('4.5') |
| 535 | |
| 536 | def test_average_class_without_dtype(self): |
| 537 | # see gh-21988 |