iterate_C0

zdm.pcosmic.iterate_C0(z, F, C0=1, Niter=10)[source]

Iteratively solve for the normalization constant C0.

The constant C0 ensures that the mean of the p(delta) distribution equals unity, i.e., <delta> = 1. This is required for the distribution to correctly represent DM_cosmic / <DM_cosmic>.

Parameters:
  • z (float) – Redshift.

  • F (float) – Log10 of the feedback parameter.

  • C0 (float, optional) – Initial guess for C0. Default is 1.

  • Niter (int, optional) – Number of iterations. Default is 10.

Returns:

Converged value of C0.

Return type:

float