Skip to content

Commit

Permalink
Fix failure of chi-squared test
Browse files Browse the repository at this point in the history
  • Loading branch information
idontgetoutmuch committed Jun 10, 2024
1 parent 8f1b2bf commit 4ebd207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions System/Random/MWC/Distributions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ binomial nTrials prob gen
step5 ix w

-- Right tail
| otherwise = do let ix = floor $ xr - log v / lambdaL
if ix > 0 && ix > n
| otherwise = do let ix = floor $ xr - log v / lambdaR
if ix > n
then hh
else do let w = v * (u - p3) * lambdaR
step5 ix w
Expand Down

0 comments on commit 4ebd207

Please sign in to comment.