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

Exception at IntervalUtils.getClopperPearsonInterval

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 4.0
    • Labels:
      None

      Description

      IntervalUtils.getClopperPearsonInterval throws an exception when number of successes equals to zero or number of successes = number of trials.

      IntervalUtils.getClopperPearsonInterval(1, 0, 0.95) or IntervalUtils.getClopperPearsonInterval(1, 1, 0.95) throws org.apache.commons.math3.exception.NotStrictlyPositiveException despite that its input parameters are valid.

        Attachments

        1. ClopperPearsonIntervalTest.java
          4 kB
          Michele De Stefano
        2. ClopperPearsonInterval.java
          3 kB
          Michele De Stefano

          Issue Links

            Activity

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                art.g Art
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: