commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (Commented) (JIRA)" <>
Subject [jira] [Commented] (MATH-704) One of Variance.evaluate() methods does not work correctly
Date Sun, 27 Nov 2011 06:02:48 GMT


Phil Steitz commented on MATH-704:

I can't seem to make this fail and I have added tests that would indicate that array segments
are being handled properly.  Can you provide an example showing a failure?
> One of Variance.evaluate() methods does not work correctly
> ----------------------------------------------------------
>                 Key: MATH-704
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Java 1.6
>            Reporter: Leonid Ilyevsky
>            Assignee: Phil Steitz
>             Fix For: 3.0
> The method org.apache.commons.math.stat.descriptive.moment.Variance.evaluate(double[]
values, double[] weights, double mean, int begin, int length) does not work properly. Looks
loke it ignores the length parameter and grabs the whole dataset.
> Similar method in Mean class seems to work.
> I did not check other methods taking the part of the array; they may have the same problem.
> Workaround: I had to shrink my arrays and use the method without the length.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message