commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MATH-587) AbstractIntegerDistribution cumulativeProbablitity(int, int) implementation does not match API documentation
Date Sun, 12 Jun 2011 06:55:51 GMT
AbstractIntegerDistribution cumulativeProbablitity(int, int) implementation does not match
API documentation
------------------------------------------------------------------------------------------------------------

                 Key: MATH-587
                 URL: https://issues.apache.org/jira/browse/MATH-587
             Project: Commons Math
          Issue Type: Bug
            Reporter: Phil Steitz


The documentation for this method says it computes p(x0 < X < x1), but the parameter
documentation inconsistently states that the bounds are "inclusive" and what it actually returns
is
{code}
cumulativeProbability(x1) - cumulativeProbability(x0 - 1);
{code}
which is p(x0-1 <= X < x1).
In the code above, x0 - 1 should be replaced by x0 + 1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message