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

Function fake_bootstrapper

galleries/examples/statistics/boxplot_demo.py:196–209  ·  view source on GitHub ↗

This is just a placeholder for the user's method of bootstrapping the median and its confidence intervals. Returns an arbitrary median and confidence interval packed into a tuple.

(n)

Source from the content-addressed store, hash-verified

194
195
196def fake_bootstrapper(n):
197 """
198 This is just a placeholder for the user's method of
199 bootstrapping the median and its confidence intervals.
200
201 Returns an arbitrary median and confidence interval packed into a tuple.
202 """
203 if n == 1:
204 med = 0.1
205 ci = (-0.25, 0.25)
206 else:
207 med = 0.2
208 ci = (-0.35, 0.50)
209 return med, ci
210
211inc = 0.1
212e1 = np.random.normal(0, 1, size=500)

Callers 1

boxplot_demo.pyFile · 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…