gwpopulation_pipe.data_collection.distance_prior

distance_prior(redshift_prior, luminosity_distance)[source]

Calculate the prior on luminosity distance given a redshift prior assuming Planck15 cosmology.

\[p(d_L) = p(z)\frac{dz}{dd_L}\]
Parameters:
redshift_prior: callable

The redshift prior function.

luminosity_distance: array_like

The luminosity distance values to evaluate the prior for.