[
https://issues.apache.org/jira/browse/MATH-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719297#comment-16719297
]
Gilles edited comment on MATH-1472 at 12/12/18 6:45 PM:
--------------------------------------------------------
{quote}Bug is perhaps in the usage
{quote}
Confirming: In line
{code:java}
data[i] += rand * Math.ulp(data[i]);
{code}
the contents of {{data[i]}} is {{Infinity}} and {{rand}} is negative, resulting
in {{NaN}}.
was (Author: erans):
bq. Bug is perhaps in the usage
Confirming: In line
{code}
data[i] += rand * Math.ulp(data[i]);
{code}
the contents of {{data[i]}} is {{Infinity}} and {{rand}} is negative, resulting
in {{NaN}}.
Bug report should be moved to
[MATH|https://issues.apache.org/jira/projects/MATH].
> Unit test fails in "Commons Math"
> ---------------------------------
>
> Key: MATH-1472
> URL: https://issues.apache.org/jira/browse/MATH-1472
> Project: Commons Math
> Issue Type: Bug
> Reporter: Gilles
> Priority: Major
>
> Upgrading the dependency of "Commons Math" to the just released v1.2 of
> "Commons RNG", a unit test now fails:
> {noformat}
> [ERROR]
> testTwoSampleWithManyTiesAndExtremeValues(org.apache.commons.math4.stat.inference.KolmogorovSmirnovTestTest)
> Time elapsed: 0.032 s <<< ERROR!
> org.apache.commons.math4.exception.NotANumberException: NaN is not allowed
> at
> org.apache.commons.math4.stat.inference.KolmogorovSmirnovTestTest.testTwoSampleWithManyTiesAndExtremeValues(KolmogorovSmirnovTestTest.java:512)
> {noformat}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)