commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikkel Meyer Andersen <>
Subject Re: [jira] Updated: (MATH-384) DescriptiveStatistics based on double[]
Date Mon, 27 Dec 2010 10:26:28 GMT

Now MATH384 should soon be ready to be closed, too. I will commit in
2.2 and trunk when somebody (Phil?) has had the time to review the
patch proposals.

Cheers, Mikkel.

2010/12/27 Mikkel Meyer Andersen (JIRA) <>:
>     [
> Mikkel Meyer Andersen updated MATH-384:
> ---------------------------------------
>    Attachment: MATH384-3_0
>                MATH384-2_2
> Proposed patches with comments taken into account. The difference for 2.2 and 3.0 is
that in 3.0 the DoubleArray interface has been extended to include addElements(double[])
>> DescriptiveStatistics based on double[]
>> ---------------------------------------
>>                 Key: MATH-384
>>                 URL:
>>             Project: Commons Math
>>          Issue Type: New Feature
>>            Reporter: Mikkel Meyer Andersen
>>            Assignee: Mikkel Meyer Andersen
>>            Priority: Minor
>>             Fix For: 2.2
>>         Attachments: MATH384-2_2, MATH384-3_0, patch-MATH-384-2, ResizableArrayInstantiatedByArray
>>   Original Estimate: 2h
>>  Remaining Estimate: 2h
>> Right now the DescriptiveStatistics is for ResizableDoubleArray, but if the user
has the double[] data she wishes to get DescriptiveStatistics for there is no way of doing
this (besides the inefficient way of creating a ResizableDoubleArray from the double[]).
>> It would be possible to use StatUtils, but it does not contain near as much functionality
as DescriptiveStatistics.
>> Idea: Create a DescriptiveStatistics for double[] also. I'm not sure which way of
implementing it would be the best, but one way would be to make DescriptiveStatistics abstract
with all but the apply-method implemented as now. The apply-method should be made as abstract
which then has to implemented in the extensions together with a field containing the values.
(addValue, windowSize etc. has to go in the ResizableDoubleArray-extension.) The double[]-extension
should then have a constructor taking double[] as a parameter.
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message