nbodykit.cosmology.power.halofit

Classes

HalofitPower(cosmo, redshift) Nonlinear power spectrum computed using HaloFit via CLASS.
class nbodykit.cosmology.power.halofit.HalofitPower(cosmo, redshift)[source]

Nonlinear power spectrum computed using HaloFit via CLASS.

Parameters:
  • cosmo (Cosmology, astropy.cosmology.FLRW) – the Cosmology instance; astropy cosmology objects are automatically converted
  • redshift (float) – the redshift of the power spectrum
cosmo

class:Cosmology – the object giving the cosmological parameters

sigma8

float – the z=0 amplitude of matter fluctuations

redshift

float – the redshift to compute the power at

Attributes

attrs The meta-data dictionary
sigma8 The amplitude of matter fluctuations at \(z=0\).

Methods

__call__(k) Return the power in units of \(h^{-3} \mathrm{Mpc}^3\).
__call__(k)[source]

Return the power in units of \(h^{-3} \mathrm{Mpc}^3\).

Parameters:k (float, array_like) – the wavenumbers in units of \(h \mathrm{Mpc}^{-1}\)
Returns:Pk – the linear power spectrum evaluated at k in units of \(h^{-3} \mathrm{Mpc}^3\)
Return type:float, array_like
attrs

The meta-data dictionary

sigma8

The amplitude of matter fluctuations at \(z=0\).