astropy:docs

cumulative_NFW_PDF

halotools.halo_occupation.cumulative_NFW_PDF(x, c)[source] [edit on github]

Integral of an NFW profile with concentration c. Unit-normalized so that the result is a cumulative PDF.

F(x,c) = \frac{ln(1+xc) - \frac{xc}{1+xc}} 
{ln(1+c) - \frac{c}{1+c}}

Parameters:

x : array_like

Values are in the range (0,1). Elements x = r/Rvir specify host-centric distances in the range 0 < r/Rvir < 1.

c : array_like

Concentration of halo whose profile is being tabulated.

Returns:

F : array

Array of floats in the range (0,1). Value gives the probability of randomly drawing a radial position x = \frac{r}{R_{vir}} from an NFW profile of input concentration c.

Notes

Currently being used by mock.HOD_mock to generate Monte Carlo realizations of satellite profiles, using method of transformation of variables.

Page Contents