(self)
| 385 | self.do_precision(np.double, np.longdouble) |
| 386 | |
| 387 | def test_histogram_bin_edges(self): |
| 388 | hist, e = histogram([1, 2, 3, 4], [1, 2]) |
| 389 | edges = histogram_bin_edges([1, 2, 3, 4], [1, 2]) |
| 390 | assert_array_equal(edges, e) |
| 391 | |
| 392 | arr = np.array([0., 0., 0., 1., 2., 3., 3., 4., 5.]) |
| 393 | hist, e = histogram(arr, bins=30, range=(-0.5, 5)) |
| 394 | edges = histogram_bin_edges(arr, bins=30, range=(-0.5, 5)) |
| 395 | assert_array_equal(edges, e) |
| 396 | |
| 397 | hist, e = histogram(arr, bins='auto', range=(0, 1)) |
| 398 | edges = histogram_bin_edges(arr, bins='auto', range=(0, 1)) |
| 399 | assert_array_equal(edges, e) |
| 400 | |
| 401 | def test_small_value_range(self): |
| 402 | arr = np.array([1, 1 + 2e-16] * 10) |
nothing calls this directly
no test coverage detected