Evaluates the Landy-Szalay (1993) estimator of the two-point correlation function of a point set D given a random comparison set R. The two point sets D and R can be made of different numbers of points, as the pair-counts are automatically normalized according to the number of points. In fact, it is often preferable to make the R set larger to reduce the R-related shot noise in the two-point estimator.
landyszalay(D, R, dr = 0.1, cpp = TRUE)
Returns a data frame with the two-point statistics of the data points:
vector with the mid-points of the distance bins for which the two-point correlation function has been evaluated.
values of the two-point correlation function at the distances r.
Poisson errors of xi.
n-element vector or n-by-d matrix of d-dimensional positions of the data points
m-element vector or m-by-d matrix of d-dimensional positions of the random comparison points
bin size for the evaluation of the two-point correlation function
logical flag; if set to TRUE (default) a fast implementation in C++ is used to count the point-pairs in distance bins, otherwise the counting is performed less efficiently in R.
Danail Obreschkow
paircount