Skip to content
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

Fix beta_inc_inv bug introduced in #399 #401

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Conversation

devmotion
Copy link
Member

Apparently, #399 accidentally broke beta_inc_inv for some values, as reported in JuliaStats/StatsFuns.jl#145.

The main issue seems to be that the initial x became much smaller in some cases (see #399 (comment)). Increasing the lower bound significantly (the proposed 1e-200 in #396 is not sufficient), e.g., to eps(Float64), fixes JuliaStats/StatsFuns.jl#145.

However, for now I just reverted that change completely since it seems it is not needed for the bug fix in #399.

@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #401 (fed3b2b) into master (7461b51) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #401   +/-   ##
=======================================
  Coverage   93.60%   93.60%           
=======================================
  Files          12       12           
  Lines        2769     2769           
=======================================
  Hits         2592     2592           
  Misses        177      177           
Flag Coverage Δ
unittests 93.60% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/beta_inc.jl 92.51% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7461b51...fed3b2b. Read the comment docs.

@stevengj stevengj merged commit 49be7e6 into master Jun 1, 2022
@stevengj stevengj deleted the dw/fix_statsfuns_145 branch June 1, 2022 21:08
@stevengj
Copy link
Member

stevengj commented Jun 1, 2022

LGTM.

devmotion added a commit that referenced this pull request Jun 1, 2022
stevengj pushed a commit that referenced this pull request Jun 2, 2022
* Fix `beta_inc_inv` bug introduced in #399 (#401)

* Release 1.8.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distributions uses an old version of Rmath
2 participants