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

Exception at IntervalUtils.getClopperPearsonInterval

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.1
    • 4.0
    • None
    • 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. ClopperPearsonInterval.java
          3 kB
          Michele De Stefano
        2. ClopperPearsonIntervalTest.java
          4 kB
          Michele De Stefano

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: