Resolve #430 (Add normalisation flag to constrained prior)
All threads resolved!
Compare changes
Files
19- https://git.ligo.org/lscsoft/bilby into constraintBruce Edelman authored
This MR resolves issue #430 (closed) to properly normalize ConstrainedPriorDict.prob()
when sampling the prior. This MR allows for users to input a normalisation flag when creating an instance of a Constraint
prior and when calling ConstrainedPriorDict.prob()
if there are normalisation constants given will return the normalisation*prob and otherwise use the ratio of total samples to kept samples as this normalisation constant. Pass normalisation=1 when creating a Constraint
Prior for behaviour before this MR.