ENCORE: an O (Ng2) estimator for galaxy N-point correlation functions
Abstract
We present a new algorithm for efficiently computing the N-point correlation functions (NPCFs) of a 3D density field for arbitrary N. This can be applied both to a discrete spectroscopic galaxy survey and a continuous field. By expanding the statistics in a separable basis of isotropic functions built from spherical harmonics, the NPCFs can be estimated by counting pairs of particles in space, leading to an algorithm with complexity $\mathcal {O}(N_\mathrm{g}^2)$ for Ng particles, or $\mathcal {O}(N_\mathrm{FFT}\log N_\mathrm{FFT})$ when using a Fast Fourier Transform with NFFT grid-points. In practice, the rate-limiting step for N > 3 will often be the summation of the histogrammed spherical harmonic coefficients, particularly if the number of radial and angular bins is large. In this case, the algorithm scales linearly with Ng. The approach is implemented in the ENCORE code, which can compute the 3PCF, 4PCF, 5PCF, and 6PCF of a BOSS-like galaxy survey in ${\sim}100$ CPU-hours, including the corrections necessary for non-uniform survey geometries. We discuss the implementation in depth, along with its GPU acceleration, and provide practical demonstration on realistic galaxy catalogues. Our approach can be straightforwardly applied to current and future data sets to unlock the potential of constraining cosmology from the higher point functions.
- Publication:
-
Monthly Notices of the Royal Astronomical Society
- Pub Date:
- January 2022
- DOI:
- 10.1093/mnras/stab3025
- arXiv:
- arXiv:2105.08722
- Bibcode:
- 2022MNRAS.509.2457P
- Keywords:
-
- methods: numerical;
- methods: statistical;
- galaxies: statistics;
- large-scale structure of Universe;
- cosmology: theory;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- Astrophysics - Cosmology and Nongalactic Astrophysics;
- General Relativity and Quantum Cosmology;
- Physics - Computational Physics
- E-Print:
- 25 pages, 6 figures, accepted by MNRAS. Code available at https://github.com/oliverphilcox/encore