[ 
https://issues.apache.org/jira/browse/MATH-1559?focusedWorklogId=505467&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-505467
 ]

ASF GitHub Bot logged work on MATH-1559:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Oct/20 00:09
            Start Date: 28/Oct/20 00:09
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on pull request #162:
URL: https://github.com/apache/commons-math/pull/162#issuecomment-717614400


   
   [![Coverage 
Status](https://coveralls.io/builds/34511731/badge)](https://coveralls.io/builds/34511731)
   
   Coverage remained the same at 90.713% when pulling 
**bc61789aef97795c885d80ecc3978435b362abf8 on 
tongxin97:fix-testCreateFromDoubles** into 
**43b77ffabba8a48144080674973362150cbcfb28 on apache:master**.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 505467)
    Remaining Estimate: 0h
            Time Spent: 20m  (was: 10m)

> testCreateFromDoubles can fail
> ------------------------------
>
>                 Key: MATH-1559
>                 URL: https://issues.apache.org/jira/browse/MATH-1559
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: XinT
>            Priority: Minor
>              Labels: pull-request-available, test
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> EnumeratedRealDistributionTest.testCreateFromDoubles() can sometimes fail due 
> to a precision problem. More precisely, sometimes distribution.probability(2) 
> equals to 0.5000000000000001, and the assertion assertEquals(0.5, 
> distribution.probability(2), 0) will fail. 
> The deeper reason why this happens is that the call to 
> MathArrays.normalizeArray() in the constructor of EnumeratedDistribution 
> (line 105) can mess up the probability for value 2 by changing it from 
> exactly 0.5 to 0.5000000000000001. 
> Available PR: https://github.com/apache/commons-math/pull/162
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to