commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otmar Ertl (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1274) Represent Kolmogorov-Smirnov statistic as long value
Date Wed, 16 Sep 2015 18:41:46 GMT

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

Otmar Ertl commented on MATH-1274:
----------------------------------

Applied the patch after renaming the methods to integralXxx as proposed by Phil, thanks!
fb7e1e265dd9e560b3a3127a6593b6602f60026c (4.0) 
1c9c43c1d4bb76d7e47cdfc9c6681a38305a95e4 (3.6)

> Represent Kolmogorov-Smirnov statistic as long value
> ----------------------------------------------------
>
>                 Key: MATH-1274
>                 URL: https://issues.apache.org/jira/browse/MATH-1274
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Otmar Ertl
>             Fix For: 4.0, 3.6
>
>         Attachments: MATH-1274.patch
>
>
> In KolmogorovSmirnovTest.java the 2-sample Kolmogorov-Smirnov statistic is internally
represented as double value. However, the KS-statistic can be accurately represented as long
value if multiplied by both sample sizes. This approach saves some floating point operations
and avoids difficulties when comparing two KS-statistics. Currently, Precision.compareTo with
some tolerance must be used.



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

Mime
View raw message