hmf.cosmology.growth_factor.GrowthFactor.growth_factor_fn

GrowthFactor.growth_factor_fn(zmin=0.0, inverse=False)[source]

Calculate \(d(a) = D^+(a)/D^+(a=1)\), from Lukic et. al. 2007, eq. 7.

Returns a function G(z).

Parameters
  • zmin (float, optional) – The minimum redshift of the function. Default 0.0

  • inverse (bool, optional) – Whether to return the inverse relationship [z(g)]. Default False.

Returns

The normalised growth factor as a function of redshift, or redshift as a function of growth factor if inverse is True.

Return type

callable