Skip to content

Commit

Permalink
Fix for various CDFs with negative q and lower.tail=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
chjackson committed Jul 4, 2022
1 parent d5b414e commit 9dbfef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace {
if (lower_tail) {
if (give_log) {return R_NegInf;} else {return 0;}
} else {
if (give_log) {return 0;} else {return R_NegInf;}
if (give_log) {return 0;} else {return 1;}
}
}

Expand Down

0 comments on commit 9dbfef7

Please sign in to comment.