gwpopulation_pipe.data_collection.distance_prior

distance_prior(redshift_prior, luminosity_distance, cosmology='Planck15_LAL')[source]

Calculate the prior on luminosity distance given a redshift prior assuming the given 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.

cosmology: str

The name of the cosmology, default is Planck15_LAL