MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _compute_conf_interval

Function _compute_conf_interval

lib/matplotlib/cbook.py:1244–1257  ·  view source on GitHub ↗
(data, med, iqr, bootstrap)

Source from the content-addressed store, hash-verified

1242 return CI
1243
1244 def _compute_conf_interval(data, med, iqr, bootstrap):
1245 if bootstrap is not None:
1246 # Do a bootstrap estimate of notch locations.
1247 # get conf. intervals around median
1248 CI = _bootstrap_median(data, N=bootstrap)
1249 notch_min = CI[0]
1250 notch_max = CI[1]
1251 else:
1252
1253 N = len(data)
1254 notch_min = med - 1.57 * iqr / np.sqrt(N)
1255 notch_max = med + 1.57 * iqr / np.sqrt(N)
1256
1257 return notch_min, notch_max
1258
1259 # output is a list of dicts
1260 bxpstats = []

Callers 1

boxplot_statsFunction · 0.85

Calls 2

_bootstrap_medianFunction · 0.85
sqrtMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…