Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve precision for large NDF (#214)
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)
- Loading branch information