Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
New unit tests (see below) show that (on the set of values tested) the current accuracy of Gamma.logGamma(double) is about 130 ulps.
The NSWC Library of Mathematical Functions proposes an implementation of this function with much higher accuracy: on the same set of values, the error goes down to about 3 ulps.
This library is available here, and is license-free see this thread. It is proposed to port this implementation in Commons-Math. This in turn could lead to a resolution of MATH-738.
Attachments
Attachments
Issue Links
- is depended upon by
-
MATH-888 GammaDistribution returns infinite density when cdf = 1
- Closed