[GRASS-git] [OSGeo/grass] 1d31ed: lib/cdhc: correct C translation of Cdhc_alnfac() f...

Loïc Bartoletti noreply at github.com
Wed Jun 19 00:01:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 1d31ed26f43ecd6ae916a0e51696186c948b7b10
      https://github.com/OSGeo/grass/commit/1d31ed26f43ecd6ae916a0e51696186c948b7b10
  Author: Loïc Bartoletti <lbartoletti at users.noreply.github.com>
  Date:   2024-06-19 (Wed, 19 Jun 2024)

  Changed paths:
    M lib/cdhc/as177.c

  Log Message:
  -----------
  lib/cdhc: correct C translation of Cdhc_alnfac() from original Fortran source (#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



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list