-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Rice distribution: extend to b=0, add an explicit rvs method. #2847
Conversation
nice, ticket count is going down looks good to me |
# rice.pdf(x, b\to 0) = x exp(-x^2/2) + O(b^2) | ||
# see e.g. Abramovich & Stegun 9.6.7 & 9.6.10 | ||
b = 1e-8 | ||
np.allclose(stats.rice.pdf(x, 0), stats.rice.pdf(x, b), |
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.
I think you meant to use assert_allclose
here?
Looks good. One thing to add would be to remove |
made changed suggested by @rgommers, rebased on master, pushed the rebased version. |
Slight git mishap here.... |
ouch. |
You can create a new branch from current master, cherry-pick the relevant commits and then force push to this PR ( |
@rgommers done just that, thanks a whole lot!
|
after rebase you need to force push to your github branch, to overwrite it |
Yep. Step 1, 2 are correct, 3 needed |
Rice distribution: extend to b=0, add an explicit rvs method.
Merged, thanks! |
closes gh-2164 and gh-2742.
As a bonus, rvs get a bit faster. With current master:
with this PR: