[ 
https://issues.apache.org/jira/browse/MATH-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817373#comment-16817373
 ] 

Gilles commented on MATH-1401:
------------------------------

bq. I've found an elegant solution 

Thanks. Patch welcome (with unit test)!

bq. (from another developer)

Please check possible license issues.
IIUC, the MIT license would require the addition of an entry in the 
["NOTICE.txt" 
file|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=NOTICE.txt].

> Exception at IntervalUtils.getClopperPearsonInterval
> ----------------------------------------------------
>
>                 Key: MATH-1401
>                 URL: https://issues.apache.org/jira/browse/MATH-1401
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: Art
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>             Fix For: 4.0
>
>
> 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. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to