pyhalofit.halofit module¶
-
class
pyhalofit.halofit.halofit¶ Bases:
objecthalofit class
This is the class of halofit, which is the fitting formula developed in Takahashi et al. (2012)
-
get_cosmology()¶ Get current cosmological paramters.
- Returns
cosmo_dict – ditionary of cosmological parameters.
- Return type
dict
-
get_pkhalo()¶ Getting halofit power spectrum.
- Returns
pkhalo – halofit power spectrum.
- Return type
ndarray
-
set_cosmology(cosmo_dict)¶ Settig cosmological parameters
- Parameters
cosmo_dict (dict) – dictionary of cosmological parameters. cosmo_dict needs to include, Omega_de0, Omega_K0, w0, wa, h. Omega_m0 is computed internally by Omega_m0 = 1.0 - Omega_de0 - Omega_K0
-
set_pklin(k, pklin, z, unit='h/Mpc')¶ Setting Fourier mode and linear matter power spectrum at desired redshift.
- Parameters
k (ndarray) – Array of Fourier modes
pklin (ndarray) – Array of linear matter power spectrum at redshift z
z (float) – Cosmological redshift
unit (str) – Unit of Fourier mode. ‘/Mpc’ and ‘h/Mpc’ are available. Default is ‘h/Mpc’.
-
sigma(R)¶ Computing the variance of linear matter power spectrum.
- Parameters
R (float) – Smoothing scale to compute the variance of linear power spectrum.
- Returns
sigma – variance of linear power smoothed at scale \(R\).
- Return type
float
-