CosmoFit.cosmology.RecombinationCalculator

class CosmoFit.cosmology.RecombinationCalculator(cosmology)[source]

Bases: object

Recombination-epoch quantities for a given cosmology, following the CMB distance-prior conventions (see the module docstring).

Parameters:

cosmology (Cosmology) – Cosmological model. Uses H0, Omega_m, Omega_k, Omega_b, and the model’s own E(z)/Omega_de(z).

__init__(cosmology)[source]

Methods

E_cmb(z)

E(z) including radiation, normalized so that E_cmb(0) = 1.

__init__(cosmology)

chi_star([z_star, n_grid])

Dimensionless comoving distance to z_star,

sound_horizon([z, n_grid, decades])

Comoving sound horizon [Mpc] at redshift z:

sound_horizon_eh98()

Comoving sound horizon [Mpc] via the closed-form Eisenstein & Hu (1998) Eq.

summary()

Return z_star, r_s(z_star), and the densities they were computed from, in a single dict.

z_star()

Redshift of photon decoupling, from a fit calibrated against CAMB (see _ZSTAR_COEF).

z_star_hs96()

Redshift of photon decoupling from the Hu & Sugiyama (1996) fitting formula, Eq.

Attributes

Omega_r

Present-day radiation density parameter, defined as the priors define it (CHW19 Eq.

h

Dimensionless Hubble parameter, h = H0 / 100.

omega_b_h2

Physical baryon density, Omega_b * h^2.

omega_m_h2

Physical matter density, Omega_m * h^2.

z_eq

Matter-radiation equality redshift, CHW19 Eq.