Like `searchsorted`, but where the last item in `v` is placed on the right. In the context of a histogram, this makes the last bin edge inclusive
(a, v)
| 455 | |
| 456 | |
| 457 | def _search_sorted_inclusive(a, v): |
| 458 | """ |
| 459 | Like `searchsorted`, but where the last item in `v` is placed on the right. |
| 460 | |
| 461 | In the context of a histogram, this makes the last bin edge inclusive |
| 462 | """ |
| 463 | return np.concatenate(( |
| 464 | a.searchsorted(v[:-1], 'left'), |
| 465 | a.searchsorted(v[-1:], 'right') |
| 466 | )) |
| 467 | |
| 468 | |
| 469 | def _histogram_bin_edges_dispatcher(a, bins=None, range=None, weights=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…