11.8.2. astroML.correlation.two_point_angular¶
-
astroML.correlation.
two_point_angular
(ra, dec, bins, method='standard', 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”.
- 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