hmf.halos.mass_definitions.SphericalOverdensity.m_to_r¶
- SphericalOverdensity.m_to_r(m, 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))¶
Return the radius corresponding to m for this mass definition
- Parameters
m (float or array_like) – The mass to convert to radius. Should be in the same units (modulo volume) as
halo_density()
.
Notes
Computed as \(\left(\frac{3m}{4\pi \rho_{\rm halo}\right)\).