Commit d63562bb authored by Colm Talbot's avatar Colm Talbot

typo fix in rescaling for alpha=-1

parent 208ccf76
Pipeline #17384 passed with stages
in 4 minutes and 45 seconds
......@@ -143,7 +143,7 @@ class PowerLaw(Prior):
This maps to the inverse CDF. This has been analytically solved for this case.
"""
if self.alpha == -1:
return self.low * np.exp(val * np.log(self.low / self.high))
return self.low * np.exp(val * np.log(self.high / self.low))
else:
return (self.low ** (1 + self.alpha) + val *
(self.high ** (1 + self.alpha) - self.low ** (1 + self.alpha))) ** (1. / (1 + self.alpha))
......
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