hmf.halos.mass_definitions.MassDefinition.mean_density

classmethod MassDefinition.mean_density(z=0, cosmo=FlatLambdaCDM(name="Planck15", H0=67.7 km / (Mpc s), Om0=0.307, Tcmb0=2.725 K, Neff=3.05, m_nu=[0.   0.   0.06] eV, Ob0=0.0486))[source]

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