Fast Correlation Function Calculator (FCFC) is a C toolkit for computing cosmological correlation functions. It is designed in the hope of being (both time and space) efficient, portable, and user-friendly.
So far the following products are supported:
- Isotropic 2-point correlation function (2PCF): ξ(s);
- Anisotropic 2PCF: ξ(s, μ);
- 2-D 2PCF: ξ(sperp, spara), also known as ξ(sperp, π);
- 2PCF multipoles: ξℓ(s);
- Projected 2PCF: wp(sperp).
This program is compliant with the ISO C99 and IEEE POSIX.1-2008 standards, and no external library is mandatory. Parallelisation can be enabled with OpenMP. Thus it is compatible with most of the modern C compilers and operating systems. It is written by Cheng Zhao (赵成), and is distributed under the MIT license.
If you use this program in research that results in publications, please cite the following paper:
Zhao et al. 2020, arXiv:2007.08997
The following command should compile the code for most of the time:
make
To compile only a certain component of the program, the name of the component can be supplied via
make [COMPONENT_NAME]
FCFC comes along with several components for different tasks. They are served as separate executables, and have to be supplied the corresponding configurations, either via command line options or a text file with configuration parameters.
The list of available command line options can be consulted using the -h
or --help
flags, and a template configuration file can be printed via the -t
or --template
flags.
An introduction of the components and the corresponding configuration parameters are listed below:
Component | Description | Configuration parameters |
---|---|---|
FCFC_2PT | Compute 2PCF for survey-like data | FCFC_2PT.md |
FCFC_2PT_BOX | Compute 2PCF for periodic simulation boxes* | FCFC_2PT_BOX.md |
*: treat the 3rd dimension (z-direction) as the line of sight
This program benefits from the following open-source projects:
- Fast Cubic Spline Interpolation (see also arXiv:2001.09253)
- https://github.com/andralex/MedianOfNinthers (see also this paper)
- https://github.com/swenson/sort
TBE
- FITS and HDF5 file formats
- Jackknife covariance estimation
- 3-point correlation functions
- Approximate correlation function calculators
- More data structures for potentially faster correlation function evaluation