Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 48875 invoked from network); 16 Jul 2010 13:14:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jul 2010 13:14:20 -0000 Received: (qmail 25891 invoked by uid 500); 16 Jul 2010 13:14:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 25474 invoked by uid 500); 16 Jul 2010 13:14:16 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25457 invoked by uid 99); 16 Jul 2010 13:14:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 13:14:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 13:14:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6GDDo96003828 for ; Fri, 16 Jul 2010 13:13:50 GMT Message-ID: <18008515.418651279286030355.JavaMail.jira@thor> Date: Fri, 16 Jul 2010 09:13:50 -0400 (EDT) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-384) DescriptiveStatistics based on double[] In-Reply-To: <24790047.379371279130389929.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889164#action_12889164 ] Phil Steitz commented on MATH-384: ---------------------------------- +1 - patches welcome! > DescriptiveStatistics based on double[] > --------------------------------------- > > Key: MATH-384 > URL: https://issues.apache.org/jira/browse/MATH-384 > Project: Commons Math > Issue Type: New Feature > Reporter: Mikkel Meyer Andersen > Priority: Minor > 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.