11.8.4. astroML.correlation.bootstrap_two_point_angular¶
-
astroML.correlation.
bootstrap_two_point_angular
(ra, dec, bins, method='standard', Nbootstraps=10, random_state=None)[source]¶ Angular two-point correlation function
A separate function is needed because angular distances are not euclidean, and random sampling needs to take into account the spherical volume element.
- Parameters
- raarray_like
input right ascention, shape = (n_samples,)
- decarray_like
input declination
- binsarray_like
bins within which to compute the 2-point correlation. shape = Nbins + 1
- methodstring
“standard” or “landy-szalay”.
- Nbootstrapsint
number of bootstrap resamples
- random_stateinteger, np.random.RandomState, or None
specify the random state to use for generating background
- Returns
- corrndarray
the estimate of the correlation function within each bin shape = Nbins
- dcorrndarray
error estimate on dcorr (sample standard deviation of bootstrap resamples)
- bootstrapsndarray
The full sample of bootstraps used to compute corr and dcorr