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

Gamma ratio and delta ratio

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 1.1
    • 1.1
    • gamma
    • None

    Description

      The recently ported gamma functions from the Boost C++ library contain a method for computing a ratio of gamma functions:

      gamma_ratio(a, b) = gamma(a) / gamma(b)
      
      gamma_delta_ratio(a, delta) = gamma(a) / gamma(a + delta)

      This method is required for part of the Boost C++ implementation of the RegularizedBeta function.

      It has an application in Commons Statistics for computing the mean and variance of the Nakagami distribution.

      Potential API:

      // Added to the existing Gamma class
      Gamma.ratio(a, b)
      Gamma.delta_ratio(a, delta)
      
      // New class
      GammaRatio.value(a, b)
      GammaRatio.delta(a, delta)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: