Commit ecbc6a74 authored by Gregory Ashton's avatar Gregory Ashton

Add a ln_prior method to Uniform

parent e1df746c
Pipeline #23129 passed with stages
in 11 minutes and 45 seconds
......@@ -635,6 +635,20 @@ class Uniform(Prior):
return scipy.stats.uniform.pdf(val, loc=self.minimum,
def ln_prob(self, val):
"""Return the log prior probability of val
val: float
float: log probability of val
return scipy.stats.uniform.logpdf(val, loc=self.minimum,
class LogUniform(PowerLaw):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment