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

Avoid an infinite loop in beta_inc for NaN input #445

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

ararslan
Copy link
Member

This follows suit with gamma_inc, which returns NaN if either of its two arguments are NaN, by returning NaN if any of the four arguments are NaN.

See JuliaStats/GLM.jl#538

This follows suit with `gamma_inc`, which returns `NaN` if either of its
two arguments are `NaN`, by returning `NaN` if any of the four arguments
are `NaN`.
@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ae35d10) 94.32% compared to head (b97d567) 94.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #445   +/-   ##
=======================================
  Coverage   94.32%   94.33%           
=======================================
  Files          14       14           
  Lines        2909     2911    +2     
=======================================
+ Hits         2744     2746    +2     
  Misses        165      165           
Flag Coverage Δ
unittests 94.33% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
src/beta_inc.jl 92.53% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stevengj stevengj merged commit 99aca9a into master Jun 23, 2023
@stevengj stevengj deleted the aa/another-beta_inc-fix branch June 23, 2023 04:15
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.

2 participants