hmfast.halos.massfunc.TW10SubHaloMassFunction
- class hmfast.halos.massfunc.TW10SubHaloMassFunction[source]
Bases:
SubHaloMassFunctionSubhalo mass function from Tinker & Wetzel (2010).
Valid for all host halo masses.
Methods
dndlnmu(cosmology, m_host, m_sub)Compute the Tinker and Wetzel (2010) subhalo mass function.
- dndlnmu(cosmology, m_host, m_sub)[source]
Compute the Tinker and Wetzel (2010) subhalo mass function.
\[\frac{dN}{d\ln \mu} = 0.30 \mu^{-0.7} \exp(-9.9 \mu^{2.5})\]where \(\mu = M_{\rm sub} / M_{\rm host}\).
- Parameters:
- cosmologyCosmology
This implementation uses only \(\mu = M_{\rm sub} / M_{\rm host}\) and is agnostic of mass definition.
- m_hostfloat or array_like
Host halo mass in physical \(M_\odot\).
- m_subfloat or array_like
Subhalo mass in physical \(M_\odot\).
- Returns:
- dN_dlnmufloat or array_like
Dimensionless number of subhalos per host per \(d\ln \mu\), with shape broadcast from
m_hostandm_sub, where singleton dimensions get squeezed before return.