choose_source_evolution_function

zdm.cosmology.choose_source_evolution_function(which=0)[source]

Select a source evolution function for FRB population modeling.

Returns a function that computes the relative FRB source density as a function of redshift. These functions are parameterized to allow for different evolution scenarios.

Parameters:

which (int, optional) –

Model selection: - 0: Star formation rate from Madau & Dickinson (2014) raised to power n.

SFR(z)^n where SFR follows the cosmic star formation history.

  • 1: Simple power law (1+z)^(2.7*n), without the high-z turnover.

    Useful for comparison with SFR model.

Default is 0.

Returns:

Source evolution function with signature f(z, n) where z is redshift and n is the evolution power parameter.

Return type:

callable

Raises:

ValueError – If which is not 0 or 1.