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

Enumerations

enum  hmpdf_Cell_mode_e { hmpdf_onehalo, hmpdf_twohalo, hmpdf_total }
 

Functions

int hmpdf_get_Cell (hmpdf_obj *d, int Nell, double elledges[Nell+1], double Cell[Nell], hmpdf_Cell_mode_e mode)
 
int hmpdf_get_Cphi (hmpdf_obj *d, int Nphi, double phi[Nphi], double Cphi[Nphi], hmpdf_Cell_mode_e mode)
 

Enumeration Type Documentation

◆ hmpdf_Cell_mode_e

Power spectrum/correlation function output modes.

Enumerator
hmpdf_onehalo 

output only the 1-halo term

hmpdf_twohalo 

output only the 2-halo term

hmpdf_total 

output sum of both

Function Documentation

◆ hmpdf_get_Cell()

int hmpdf_get_Cell ( hmpdf_obj d,
int  Nell,
double  elledges[Nell+1],
double  Cell[Nell],
hmpdf_Cell_mode_e  mode 
)

Returns the angular power spectrum.

Parameters
[in,out]dhmpdf_init() must have been called on d
[in]Nellnumber of ell-values the power spectrum is to be output at
[in]ellarray of length Nell
[out]Celloutput array, at least Nell long
[in]modeone of hmpdf_Cell_mode_e
Returns
error code

◆ hmpdf_get_Cphi()

int hmpdf_get_Cphi ( hmpdf_obj d,
int  Nphi,
double  phi[Nphi],
double  Cphi[Nphi],
hmpdf_Cell_mode_e  mode 
)

Returns the angular correlation function.

Parameters
[in,out]dhmpdf_init() must have been called on d
[in]Nphinumber of phi-values the correlation function is to be output at
[in]phiarray of length Nphi (in arcmin)
[out]Cphioutput array, at least Nphi long
[in]modeone of hmpdf_Cell_mode_e
Returns
error code