Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #135 +/- ##
========================================
Coverage 95.85% 95.85%
========================================
Files 115 115
Lines 8126 8128 +2
========================================
+ Hits 7789 7791 +2
Misses 337 337
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Thanks for looking in to this. What does |
Since the |
|
what I mean is that static makes it initialize the gamma distributions truly once, not once per call to the beta dist, or once per beta dist parameters. that is, when the next beta dist arrives, with new parameters, it will get the gamma distributions with the wrong parameters. here is a small reproducer that showcase the issue. I added prints in the beta dist, see below. but instead all lines become "alpha 0.500000,beta 1.000000" and in the beta_distribution.hpp, I added prints just to show that the params are wrong removing thanks for looking into this. |
|
Oh you're right. I only thought about and plotted the single beta_distribution usage. Will fix promptly. |
|
The static has been removed, and all diffs are on master so you'll see them in the 1.89 release in the next few weeks. Thanks again. |
@Hailios since
gamma_distribution::operator()can be markedconstwe can in fact avoid re-initializing at least 2 gamma distributions for each call tobeta_distribution::operator().