commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luc.maison...@free.fr
Subject Re: [math] StatUtils handling of zero length arrays - MATH-373
Date Thu, 10 Jun 2010 06:56:01 GMT

----- "Bill Barker" <billwbarker@verizon.net> a écrit :

> Currently StatUtils.sum(double [])  (as well as most other statistics
> that 
> operate on arrays) returns NaN on a zero length array.  As pointed out
> in 
> the Jira issue, this is not the conventional treatment of a summation
> over 
> the empty set (which would return zero) in the mathematical world.  I
> would 
> definitely want to change this in 3.0.  But I'm on the fence for how
> much of 
> 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

> 
> The change is simple, and I'm volunteering to do the work.  I just
> wanted to 
> ping the list for opinions on how much breakage we can allow in 2.2. 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message