MCPcopy Create free account
hub / github.com/numpy/numpy / _closest_observation

Function _closest_observation

numpy/lib/function_base.py:4685–4688  ·  view source on GitHub ↗
(n, quantiles)

Source from the content-addressed store, hash-verified

4683
4684
4685def _closest_observation(n, quantiles):
4686 gamma_fun = lambda gamma, index: (gamma == 0) & (np.floor(index) % 2 == 0)
4687 return _discret_interpolation_to_boundaries((n * quantiles) - 1 - 0.5,
4688 gamma_fun)
4689
4690
4691def _inverted_cdf(n, quantiles):

Callers 1

function_base.pyFile · 0.85

Tested by

no test coverage detected