Resolve #430 (Add normalisation flag to constrained prior)
Compare changes
- Bruce Edelman authored
+ 3
− 3
@@ -380,8 +380,8 @@ class PriorDict(dict):
@@ -398,7 +398,7 @@ class PriorDict(dict):
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.