diff --git a/README.html b/README.html index 9de8849..21735bf 100644 --- a/README.html +++ b/README.html @@ -956,6 +956,7 @@ the rows which only contain integers and which sum to n. (★★★)
# 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) diff --git a/README.rst b/README.rst index ee8ff25..7489cde 100644 --- a/README.rst +++ b/README.rst @@ -1113,6 +1113,7 @@ Thanks to Michiaki Ariga, there is now a # 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)