-
Notifications
You must be signed in to change notification settings - Fork 3
ScaledPrior and ShiftedPrior #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/v0.19.0 #35 +/- ##
===================================================
+ Coverage 80.65% 80.89% +0.23%
===================================================
Files 98 100 +2
Lines 20080 20372 +292
Branches 20080 20372 +292
===================================================
+ Hits 16195 16479 +284
- Misses 3770 3778 +8
Partials 115 115 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2e76d27 to
143d30f
Compare
143d30f to
1b9458b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This PR introduces two new prior wrapper types to the distribution module:
ScaledPrior<Pr, Fx>: A wrapper for priors that scales the output distribution. If drawing aPrgives a distributionFx, then drawingScaledPrior<Pr>will produce aScaled<Fx>.ShiftedPrior<Pr, Fx>: A wrapper for priors that shifts the output distribution. If drawing aPrgives a distributionFx, then drawingShiftedPrior<Pr>will produce aShifted<Fx>.