This documentation is for astroML version 0.2

This page


astroML Mailing List

GitHub Issue Tracker


Scipy 2012 (15 minute talk)

Scipy 2013 (20 minute talk)


If you use the software, please consider citing astroML.

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 :

data : array_like

input data, shape = [n_samples, n_features]

bins : array_like

bins within which to compute the 2-point correlation. shape = Nbins + 1

Nbootstrap : integer

number of bootstrap resamples to perform (default = 10)

method : string

“standard” or “landy-szalay”.

return_bootstraps: bool :

if True, return full bootstrapped samples

random_state : integer, np.random.RandomState, or None

specify the random state to use for generating background

Returns :

corr, corr_err : ndarrays

the estimate of the correlation function and the bootstrap error within each bin. shape = Nbins