# Cheat-sheet for all available interfaces in Corrfunc¶

This guide assumes that you already followed the Package Installation section of the documentation to get the package and its dependencies set up on your machine. There are three available interfaces in Corrfunc

- Using the python extensions in Corrfunc
- Using the static library interface in Corrfunc. The static libraries
have the form
`libcount<statistic>.a`

; the corresponding header file is named`count<statistic>.h`

. - Using the command-line interface in Corrfunc

## Calculating spatial clustering statistics in simulation boxes¶

Corrfunc can compute a range of spatial correlation functions and the counts-in-cells. The easiest way to get help on the command-line is by calling the executables without any input parameters. Here is the list of executables associated with each type of clustering statistic:

Clustering Statistic | Python Interface | Static library | Command-line (executable name) |
---|---|---|---|

\(\xi(r)\) | `Corrfunc.theory.DD` |
`theory/DD/libcountpairs.a` |
`theory/DD/DD` |

\(\xi(r_p,\pi)\) | `Corrfunc.theory.DDrppi` |
`theory/DDrppi/libcountpairs_rp_pi.a` |
`theory/DDrppi/DDrppi` |

\(w_p(r_p)\) | `Corrfunc.theory.wp` |
`theory/wp/libcountpairs_wp.a` |
`theory/wp/wp` |

\(\xi(r)\) | `Corrfunc.theory.xi` |
`theory/xi/libcountpairs_xi.a` |
`theory/xi/xi` |

\(pN(n)\) | `Corrfunc.theory.vpf` |
`theory/vpf/libcountspheres.a` |
`theory/vpf/vpf` |

## Calculating clustering statistics in mock catalogs¶

The list of clustering statistics supported on mock catalogs and the associated command-line executables are:

Clustering Statistic | Python Interface | Static library | Command-line (executable name) |
---|---|---|---|

\(\xi(r_p,\pi)\) | `Corrfunc.mocks.DDrppi_mocks` |
`mocks/DDrppi_mocks/libcountpairs_rp_pi_mocks.a` |
`mocks/DDrppi_mocks/DDrppi_mocks` |

\(\omega(\theta)\) | `Corrfunc.mocks.DDtheta_mocks` |
`mocks/DDtheta_mocks/libcountpairs_theta_mocks.a` |
`mocks/DDtheta_mocks/DDtheta_mocks` |

\(pN(n)\) | `Corrfunc.mocks.vpf_mocks` |
`mocks/vpf_mocks/libcountspheres_mocks` |
`mocks/vpf_mocks/vpf_mocks` |

If you are not sure which correlation function to use, then please also see Which correlation function to use?.