Re: [math] StatUtils handling of zero length arrays - MATH-373

2010-06-10 Thread Phil Steitz
Bill Barker wrote: > 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 >

Re: [math] StatUtils handling of zero length arrays - MATH-373

2010-06-10 Thread sebb
On 10/06/2010, Ted Dunning wrote: > I would count this as a bug fix rather than a compatibility break. (my vote > is non-binding, of course) > I agree that the current behaviour is wrong. Unfortunately, the current behaviour is documented in the Javadoc, so it would be a compatibility break.

Re: [math] StatUtils handling of zero length arrays - MATH-373

2010-06-09 Thread luc . maisonobe
- "Bill Barker" 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 woul

Re: [math] StatUtils handling of zero length arrays - MATH-373

2010-06-09 Thread Ted Dunning
I would count this as a bug fix rather than a compatibility break. (my vote is non-binding, of course) On Wed, Jun 9, 2010 at 7:08 PM, Bill Barker wrote: > Currently StatUtils.sum(double []) (as well as most other statistics that > operate on arrays) returns NaN on a zero length array. As poi

[math] StatUtils handling of zero length arrays - MATH-373

2010-06-09 Thread Bill Barker
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 wo