stripe / rainier

Bayesian inference in Scala.
https://rainier.fit
Apache License 2.0
432 stars 51 forks source link

Check bounds in distributions #449

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

This adds a bunch of WARNING logging for cases where the bounds of a Real does not meet the requirements of a distribution's parameterization; it also eliminates runtime bounds checking in likelihood functions where it can be proven at compile time that they're not needed. This changes the Exponential benchmark to run in O(1)!