hmpdf
One- and two-point PDFs within the halo model.
hmpdf_twopoint.h File Reference
#include "hmpdf_object.h"

Functions

int hmpdf_get_tp (hmpdf_obj *d, double phi, int Nbins, double binedges[Nbins+1], double tp[Nbins *Nbins], int noisy)
 

Function Documentation

◆ hmpdf_get_tp()

int hmpdf_get_tp ( hmpdf_obj d,
double  phi,
int  Nbins,
double  binedges[Nbins+1],
double  tp[Nbins *Nbins],
int  noisy 
)

Returns the two-point PDF.

Parameters
[in,out]dhmpdf_init() must have been called on d
[in]phiangular separation for which the two-point PDF will be computed (in arcmin). Must be strictly positive, and less than hmpdf_phi_max.
[in]Nbinsnumber of bins the two-point PDF will be binned into
[in]binedgesmonotonically increasing array of length Nbins+1
[out]tpthe binned two-point PDF will be written into the first Nbins*Nbins elements of this output array
[in]noisyif set to non-zero, the two-point PDF will be convolved with a Gaussian of covariance matrix determined from hmpdf_noise_pwr
Returns
error code
Remarks
If the two-point PDF has already been computed with the same value of phi and since then no hmpdf_init() has been called on d or hmpdf_get_tp() has been called with a different value of phi, the pre-computed result is used and only the binning is performed.