Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/cdhc: correct C translation of Cdhc_alnfac() from original Fortra…
…n source (OSGeo#3873) The C translation of the Fortran alnfac() function was flawed, originated from confusion of Fortran 1-based array index and C's 0-based. An incorrect constant (A0) is also updated. This corrects the C code to mirror the original Fortran code (https://lib.stat.cmu.edu/apstat/177). Source: Royston, J. P. (1982). Algorithm AS 177: Expected Normal Order Statistics (Exact and Approximate). Journal of the Royal Statistical Society. Series C (Applied Statistics), 31(2), 161–165. https://doi.org/10.2307/2347982
- Loading branch information