11.8.1. astroML.correlation.two_point

astroML.correlation.two_point(data, bins, method='standard', data_R=None, random_state=None)[source]

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

methodstring

“standard” or “landy-szalay”.

data_Rarray_like (optional)

if specified, use this as the random comparison sample

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