bilby.gw.prior.convert_to_flat_in_component_mass_prior

bilby.gw.prior.convert_to_flat_in_component_mass_prior(result, fraction=0.25)[source]

Converts samples with a defined prior in chirp-mass and mass-ratio to flat in component mass by resampling with the posterior with weights defined as ratio in new:old prior values times the jacobian which for F(mc, q) -> G(m1, m2) is defined as J := m1^2 / mc

Parameters:
result: bilby.core.result.Result

The output result complete with priors and posteriors

fraction: float [0, 1]

The fraction of samples to draw (default=0.25). Note, if too high a fraction of samples are draw, the reweighting will not be applied in effect.