MCPcopy Index your code
hub / github.com/numpy/numpy / _search_sorted_inclusive

Function _search_sorted_inclusive

numpy/lib/_histograms_impl.py:457–466  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

455
456
457def _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
469def _histogram_bin_edges_dispatcher(a, bins=None, range=None, weights=None):

Callers 1

histogramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…