commons-math icon indicating copy to clipboard operation
commons-math copied to clipboard

MATH-1401: cover cases where successes is zero, and where successes and trials are equals

Open kinow opened this issue 8 years ago • 0 comments

See the JIRA ticket for complete investigation notes, links, and line of thought https://issues.apache.org/jira/browse/MATH-1401

Simply adds the proper if/else to check special cases where number of successes = 0, and where number of successes = number of trials. Unit tests added too, values matching output values from R PropCIs library.

Code was in sync with master before change, all tests passed, no issues found when generating website (skipping Javadoc; Java 8...). Checkstyle, PMD, and FindBugs all OK.

Cheers Bruno

kinow avatar May 09 '17 12:05 kinow