Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1039

Logarithmic probability and density calculations for the distributions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0
    • None

    Description

      A person working with fairly small probabilities and densities often employs their logarithms to increase precision and decrease the chance of an underflow. However, just taking a log of the probability() or density() return value doesn't necessarily solve the problem, as these methods themselves could have lost precision or underflowed. This patch introduces new logProbability() and logDensity() methods overriden for many relevant distribution. The patch also introduces tests of these new methods.

      Attachments

        1. LOGDENSITY.patch
          37 kB
          Aleksei Dievskii

        Activity

          People

            psteitz Phil Steitz
            dievsky Aleksei Dievskii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: