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

Functions

int hmpdf_get_op (hmpdf_obj *d, int Nbins, double binedges[Nbins+1], double op[Nbins], int incl_2h, int noisy)
 

Function Documentation

◆ hmpdf_get_op()

int hmpdf_get_op ( hmpdf_obj d,
int  Nbins,
double  binedges[Nbins+1],
double  op[Nbins],
int  incl_2h,
int  noisy 
)

Returns the one-point PDF.

Parameters
[in,out]dhmpdf_init() must have been called on d
[in]Nbinsnumber of bins the one-point PDF will be binned into
[in]binedgesmonotonically increasing array of length Nbins+1
[out]opthe binned one-point PDF will be written into the first Nbins elements of this output array
[in]incl_2hif set to non-zero, the two-halo term (i.e. halo clustering) will be included in the output PDF
[in]noisyif set to non-zero, the one-point PDF will be convolved with a Gaussian of standard deviation computed from hmpdf_noise_pwr
Returns
error code
Remarks
if the one-point PDF has already been computed and since then no hmpdf_init() has been called on d, the pre-computed result is used and only the binning is performed.