From dda652cef7847333fd28ea6729cce7b032c28426 Mon Sep 17 00:00:00 2001 From: "Nicolas P. Rougier" Date: Thu, 14 Jul 2016 17:29:32 -0500 Subject: [PATCH] Typo again (grrr) --- README.html | 6 ++---- README.rst | 16 ++++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.html b/README.html index afc9e14..19ccbc8 100644 --- a/README.html +++ b/README.html @@ -958,9 +958,6 @@ the rows which only contain integers and which sum to n. (★★★)

  • Compute bootstrapped 95% confidence intervals for the mean of a 1D array X (i.e., resample the elements of an array with replacement N times, compute the mean of each sample, and then compute percentiles over the means). (★★★)

    -
  • - -
     # Author: Jessica B. Hamrick
     
    @@ -971,7 +968,8 @@ the mean of each sample, and then compute percentiles over the means). (★★
     confint = np.percentile(means, [2.5, 97.5])
     print(confint)
     
    -
    + + diff --git a/README.rst b/README.rst index 27969f4..d5ef71a 100644 --- a/README.rst +++ b/README.rst @@ -1118,13 +1118,13 @@ Thanks to Michiaki Ariga, there is now a (i.e., resample the elements of an array with replacement N times, compute the mean of each sample, and then compute percentiles over the means). (★★★) - .. code-block:: python + .. code-block:: python - # Author: Jessica B. Hamrick + # Author: Jessica B. Hamrick - X = np.random.randn(100) # random 1D array - N = 1000 # number of bootstrap samples - idx = np.random.randint(0, X.size, (N, X.size)) - means = X[idx].mean(axis=1) - confint = np.percentile(means, [2.5, 97.5]) - print(confint) + X = np.random.randn(100) # random 1D array + N = 1000 # number of bootstrap samples + idx = np.random.randint(0, X.size, (N, X.size)) + means = X[idx].mean(axis=1) + confint = np.percentile(means, [2.5, 97.5]) + print(confint)