Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19a830e + 3ffb884 commit 81075b5Copy full SHA for 81075b5
1 file changed
lib/matplotlib/cbook.py
@@ -1941,8 +1941,8 @@ def _bootstrap_median(data, N=5000):
1941
M = len(data)
1942
percentiles = [2.5, 97.5]
1943
1944
- ii = np.random.randint(M, size=(N, M))
1945
- bsData = x[ii]
+ bs_index = np.random.randint(M, size=(N, M))
+ bsData = data[bs_index]
1946
estimate = np.median(bsData, axis=1, overwrite_input=True)
1947
1948
CI = np.percentile(estimate, percentiles)
0 commit comments