pyccl.halos.pk_1pt module
- pyccl.halos.pk_1pt.halomod_mean_profile_1pt(cosmo, hmc, k, a, prof)[source]
Returns the mass-weighted mean halo profile.
\[I^0_1(k,a|u) = \int dM\,n(M,a)\,\langle u(k,a|M)\rangle,\]where \(n(M,a)\) is the halo mass function, and \(\langle u(k,a|M)\rangle\) is the halo profile as a function of scale, scale factor and halo mass.
- Parameters:
cosmo (
Cosmology) – a Cosmology object.hmc (
HMCalculator) – a halo model calculator.k (
floator array) – comoving wavenumber in \({\rm Mpc}^{-1}\).a (
floator array) – scale factor.prof (
HaloProfile) – halo profile.
- Returns:
integral values evaluated at each combination of
kanda. The shape of the output will be(N_a, N_k)whereN_kandN_aare the sizes ofkandarespectively. Ifkoraare scalars, the corresponding dimension will be squeezed out on output.- Return type:
(
floator array)
- pyccl.halos.pk_1pt.halomod_bias_1pt(cosmo, hmc, k, a, prof)[source]
Returns the mass-and-bias-weighted mean halo profile.
\[I^1_1(k,a|u) = \int dM\,n(M,a)\,b(M,a)\, \langle u(k,a|M)\rangle,\]where \(n(M,a)\) is the halo mass function, \(b(M,a)\) is the halo bias, and \(\langle u(k,a|M)\rangle\) is the halo profile as a function of scale, scale factor and halo mass.
- Parameters:
cosmo (
Cosmology) – a Cosmology object.hmc (
HMCalculator) – a halo model calculator.k (
floator array) – comoving wavenumber in \({\rm Mpc}^{-1}\).a (
floator array) – scale factor.prof (
HaloProfile) – halo profile.
- Returns:
integral values evaluated at each combination of
kanda. The shape of the output will be(N_a, N_k)whereN_kandN_aare the sizes ofkandarespectively. Ifkoraare scalars, the corresponding dimension will be squeezed out on output.- Return type:
(
floator array)