hmf.halos.mass_definitions.MassDefinition

class hmf.halos.mass_definitions.MassDefinition(**model_params)[source]

A base class for a Mass Definition.

Methods

__init__(**model_params)

Initialize self.

change_definition(m, mdef[, profile, c, z, …])

Change the spherical overdensity mass definition.

critical_density([z, cosmo, Om0, Tcmb0, …])

Get the critical density of the Universe at redshift z, units h^2 Msun / Mpc^3.

get_models()

Get a dictionary of all implemented models for this component.

halo_density([z, cosmo, Om0, Tcmb0, Neff, …])

The density of haloes under this definition.

halo_overdensity_crit([z, cosmo, Om0, …])

halo_overdensity_mean([z, cosmo, Om0, …])

m_to_r(m[, z, cosmo, Om0, Tcmb0, Neff, …])

Return the radius corresponding to m for this mass definition

mean_density([z, cosmo, Om0, Tcmb0, Neff, …])

Get the mean density of the Universe at redshift z, units h^2 Msun / Mpc^3.

r_to_m(r[, z, cosmo, Om0, Tcmb0, Neff, …])

Return the mass corresponding to r for this mass definition

Attributes

colossus_name

The name of the mass definition in Colossus format, if applicable.