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 (
float
or array) – comoving wavenumber in \({\rm Mpc}^{-1}\).a (
float
or array) – scale factor.prof (
HaloProfile
) – halo profile.
- Returns:
integral values evaluated at each combination of
k
anda
. The shape of the output will be(N_a, N_k)
whereN_k
andN_a
are the sizes ofk
anda
respectively. Ifk
ora
are scalars, the corresponding dimension will be squeezed out on output.- Return type:
(
float
or 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 (
float
or array) – comoving wavenumber in \({\rm Mpc}^{-1}\).a (
float
or array) – scale factor.prof (
HaloProfile
) – halo profile.
- Returns:
integral values evaluated at each combination of
k
anda
. The shape of the output will be(N_a, N_k)
whereN_k
andN_a
are the sizes ofk
anda
respectively. Ifk
ora
are scalars, the corresponding dimension will be squeezed out on output.- Return type:
(
float
or array)