MCPcopy
hub / github.com/stumpy-dev/stumpy / searchsorted_right

Function searchsorted_right

tests/naive.py:214–222  ·  view source on GitHub ↗

Naive version of numpy.searchsorted(..., side='right')

(a, v)

Source from the content-addressed store, hash-verified

212
213
214def searchsorted_right(a, v):
215 """
216 Naive version of numpy.searchsorted(..., side='right')
217 """
218 indices = np.flatnonzero(v < a)
219 if len(indices):
220 return indices.min()
221 else: # pragma: no cover
222 return len(a)
223
224
225def stump(

Callers 4

stumpFunction · 0.85
aampFunction · 0.85
scrumpFunction · 0.85
scraampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected