Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-179

Optimise the choice of function for the gamma P derivative

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 1.1
    • 1.1
    • gamma
    • None

    Description

      The incomplete gamma function is evaluated using the Lanczos approximation. This is evaluated using two alternate expressions when the terms a and z are large:

      See Incomplete Gamma Eq. 15 and Eq. 16

      The defaults used in the Boost C++ implementation required updating to increase the precision of the function when a=142 for STATISTICS-39. The threshold for large a was lowered from 150 to 100. The switch between the two functions requires optimisation to ensure the threshold is applicable to other parameterisations, e.g. a from 50 to 150.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aherbert Alex Herbert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: