pynbody.analysis.hmf#
Routines related to halo mass function and other cosmological calculations.
Warning
These routines were implemented in 2012 when there were no other python libraries that could do this. Since then, cosmology-focussed libraries such as hmf, Colossus and CCL have been developed. For precision cosmology applications, we recommend using these libraries, since the routines here have not been tested for precision applications (and are known to use approximations).
Functions
|
Calculate the correlation function of the density field at a specified radius. |
|
Calculate the linear density field correlation function. |
|
Calculate the effective spectral index of the power spectrum at a given mass scale. |
|
Return the halo bias for the given halo mass. |
|
Returns the halo mass function, dN/d log_{10} M in units of Mpc^-3 h^3. |
|
Estimate a halo mass function from a simulation, via binning haloes in mass. |
|
Calculate the variance of the density field smoothed on a mass scale M, or optionally a length scale R. |
Classes
|
A power spectrum object with linear bias |
Represents a filter acting on a field |
|
|
A Gaussian filter |
|
A step filter in harmonic space |
|
A power spectrum object, which can be called to return the power spectrum at a given wavenumber. |
|
A power spectrum object that calculates the power spectrum on the fly using CAMB. |
|
A top-hat filter in real space |