Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 22795 invoked from network); 10 Jun 2010 06:56:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 06:56:40 -0000 Received: (qmail 1276 invoked by uid 500); 10 Jun 2010 06:56:40 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 684 invoked by uid 500); 10 Jun 2010 06:56:37 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 676 invoked by uid 99); 10 Jun 2010 06:56:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 06:56:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.27.42.2] (HELO smtp2-g21.free.fr) (212.27.42.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 06:56:27 +0000 Received: from spooler6-g27.priv.proxad.net (spooler6-g27.priv.proxad.net [172.20.243.236]) by smtp2-g21.free.fr (Postfix) with ESMTP id 177964B0091 for ; Thu, 10 Jun 2010 08:56:02 +0200 (CEST) Date: Thu, 10 Jun 2010 08:56:01 +0200 (CEST) From: luc.maisonobe@free.fr To: Commons Developers List Message-ID: <259819341.2468831276152961717.JavaMail.root@spooler6-g27.priv.proxad.net> In-Reply-To: <2FEC884DD0E84FA8840473107CFD74FE@BillPC> Subject: Re: [math] StatUtils handling of zero length arrays - MATH-373 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [83.145.89.123] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Linux)/5.0.11_GA_2627.UBUNTU8_64) X-Authenticated-User: luc.maisonobe@free.fr X-Virus-Checked: Checked by ClamAV on apache.org ----- "Bill Barker" a =C3=A9crit : > Currently StatUtils.sum(double []) (as well as most other statistics > that=20 > operate on arrays) returns NaN on a zero length array. As pointed out > in=20 > the Jira issue, this is not the conventional treatment of a summation > over=20 > the empty set (which would return zero) in the mathematical world. I > would=20 > definitely want to change this in 3.0. But I'm on the fence for how > much of=20 > an incompatible change this would be for 2.2. I would say go for it, but I'm quite loosy on compatibility issues (i.e. I = promote compatibility, but always find good reasons to not do it). Luc >=20 > The change is simple, and I'm volunteering to do the work. I just > wanted to=20 > ping the list for opinions on how much breakage we can allow in 2.2.=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org