Skip to content

Conversation

@Shimuuar
Copy link
Collaborator

For large ndf fraction ndf / (ndf + x*x) becomes close to 1 and taking logarithm loses precision. It's better to rewrite

log(ndf / (ndf + x²)) = -log(1 + x²/ndf) = -log1p(x²/ndf)

For large ndf fraction `ndf / (ndf + x*x)` becomes close to 1 and
taking logarithm loses precision. It's better to rewrite

log(ndf / (ndf + x²)) = -log(1 + x²/ndf) = -log1p(x²/ndf)
@Shimuuar Shimuuar merged commit 1fb9e45 into haskell:master Feb 16, 2025
10 checks passed
@Shimuuar Shimuuar deleted the studentt-precision branch February 16, 2025 15:26
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.

1 participant