pyccl.power module
- pyccl.power.linear_power(cosmo, k, a, *, p_of_k_a='delta_matter:delta_matter')[source]
The linear power spectrum.
- Parameters:
- Returns:
Linear power spectrum.
- Return type:
(
float
or array)
- pyccl.power.nonlin_power(cosmo, k, a, *, p_of_k_a='delta_matter:delta_matter')[source]
The non-linear power spectrum.
- Parameters:
- Returns:
Non-linear power spectrum.
- Return type:
(
float
or array)
- pyccl.power.sigmaM(cosmo, M, a)[source]
RMS on the scale of a halo of mass \(M\). Calculated as \(\sigma_R\) (see
sigmaR()
) with \(R\) being the Lagrangian radius of a halo of mass \(M\) (seemass2radius_lagrangian()
).
- pyccl.power.sigmaR(cosmo, R, a=1, *, p_of_k_a='delta_matter:delta_matter')[source]
RMS of the matter overdensity a top-hat sphere of radius \(R\).
\[\sigma_R^2(z)=\frac{1}{2\pi^2}\int dk\,k^2\,P(k,z)\, |W(kR)|^2,\]with \(W(x)=(3\sin(x)-x\cos(x))/x^3\).
- Parameters:
- Returns:
\(\sigma_R\).
- Return type:
(
float
or array)
- pyccl.power.sigmaV(cosmo, R, a=1, *, p_of_k_a='delta_matter:delta_matter')[source]
RMS of the linear displacement field in a top-hat sphere of radius R.
\[\sigma_V^2(z)=\frac{1}{6\pi^2}\int dk\,P(k,z)\,|W(kR)|^2,\]with \(W(x)=(3\sin(x)-x\cos(x))/x^3\).
- Parameters:
- Returns:
\(\sigma_V\) (\({\rm Mpc}\)).
- Return type:
(
float
or array)
- pyccl.power.sigma8(cosmo, *, p_of_k_a='delta_matter:delta_matter')[source]
RMS variance in a top-hat sphere of radius \(8\,{\rm Mpc}/h\), (with the value of \(h\) extracted from
cosmo
) at \(z=0\).
- pyccl.power.kNL(cosmo, a, *, p_of_k_a='delta_matter:delta_matter')[source]
Non-linear scale \(k_{\rm NL}\). Calculated based on Lagrangian perturbation theory as the inverse of the rms of the displacement field, i.e.:
\[k_{\rm NL}(z) = \left[\frac{1}{6\pi^2} \int dk\,P_L(k,z)\right]^{-1/2}.\]- Parameters:
- Returns:
\(k_{\rm NL}\).
- Return type:
float
or array