11.8.3. astroML.correlation.bootstrap_two_point¶
-
astroML.correlation.
bootstrap_two_point
(data, bins, Nbootstrap=10, method='standard', return_bootstraps=False, random_state=None)[source]¶ Bootstrapped two-point correlation function
- Parameters
- dataarray_like
input data, shape = [n_samples, n_features]
- binsarray_like
bins within which to compute the 2-point correlation. shape = Nbins + 1
- Nbootstrapinteger
number of bootstrap resamples to perform (default = 10)
- methodstring
“standard” or “landy-szalay”.
- return_bootstraps: bool
if True, return full bootstrapped samples
- random_stateinteger, np.random.RandomState, or None
specify the random state to use for generating background
- Returns
- corr, corr_errndarrays
the estimate of the correlation function and the bootstrap error within each bin. shape = Nbins