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

RegularizedBeta function to detect edge cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1
    • gamma
    • None

    Description

      The Regularized incomplete beta function Has the following properties:

      I(0; a, b) = 0
      I(1; a, b) = 1
      I(x; a, 1) = x^a
      I(x, 1, b) = 1 - (1-x)^b
      

      Currently this test fails:

      Assertions.assertEquals(1.0, RegularizedBeta.value(1.0, 1e17, 0.5));
      

      The function presently ignores the x=0 and x=1 case which evaluate with infinities due to the use of log( x ) and log(1-x).

      The function should be corrected to handle edge cases.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: