diff --git a/gwpopulation/hyperpe.py b/gwpopulation/hyperpe.py index cec9191f..74a600a9 100644 --- a/gwpopulation/hyperpe.py +++ b/gwpopulation/hyperpe.py @@ -495,3 +495,22 @@ def generate_rate_posterior_sample(self): this simply returns the current value of the rate parameter. """ return self.parameters["rate"] + + +class NullHyperparameterLikelihood(HyperparameterLikelihood): + """ + A likelihood that can be used to sample the prior space subject to the + maximum_uncertainty constraint imposed on the variance. + + For the uncertainty calculation see the Appendix of + `Golomb and Talbot `_ and + `Farr `_. + """ + + def ln_likelihood_and_variance(self): + """ + Compute the ln likelihood estimator and its variance. + """ + _, variance = super().ln_likelihood_and_variance() + return 0.0, variance +