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] [Comment Edited] (MATH-1208) EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant bin
Date Mon, 09 Mar 2015 02:42:38 GMT

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

Phil Steitz edited comment on MATH-1208 at 3/9/15 2:42 AM:
-----------------------------------------------------------

Fixed in 
master: b148046add84f6c5bd19aeceb10c1a0fcf2e1283
3.x: d41364faa4f73fc885dcc9e99a838e8fa4c95998

Fix was to eliminate interpolation within bin for bins having constant kernel distributions
assigned.  For any x within a bin with constant kernel, cumulativeProbability(\x) is now the
sum of the bin masses below the bin containing x plus the full mass of the bin to which x
belongs.


was (Author: psteitz):
Fixed in 
master: b148046add84f6c5bd19aeceb10c1a0fcf2e1283
3.x: d41364faa4f73fc885dcc9e99a838e8fa4c95998

Fix was to eliminate interpolation within bin for bins having constant kernel distributions
assigned.  For any x within a bin with constant kernel, cumulativeProbability(x) is now the
sum of the bin masses below the bin containing x plus the full mass of the bin to which x
belongs.

> EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant
bin
> -----------------------------------------------------------------------------------------------
>
>                 Key: MATH-1208
>                 URL: https://issues.apache.org/jira/browse/MATH-1208
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.4.1
>            Reporter: Phil Steitz
>             Fix For: 4.0, 3.5
>
>
> If x belongs to a bin with no variance or to which a ConstantRealDistribution kernel
has been assigned, cumulativeProbability(x) can return NaN.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message