Re: MannWhitneyUTest.mannWhitneyU

2013-08-26 Thread Phil Steitz
On 8/25/13 11:15 PM, Ted Dunning wrote: > I think that it will be somewhat slower, but next to imperceptibly so. > > It will not be any more accurate. > > It should be noted, however, that this code will fail for input longer than > 2^16 because of integer overflow. Good point. We should either c

Re: MannWhitneyUTest.mannWhitneyU

2013-08-25 Thread Ted Dunning
I think that it will be somewhat slower, but next to imperceptibly so. It will not be any more accurate. It should be noted, however, that this code will fail for input longer than 2^16 because of integer overflow. On Sun, Aug 25, 2013 at 8:27 PM, Dave Brosius wrote: > I would think that in

MannWhitneyUTest.mannWhitneyU

2013-08-25 Thread Dave Brosius
I would think that in public double mannWhitneyU(final double[] x, final double[] y) final double U1 = sumRankX - (x.length * (x.length + 1)) / 2; should be final double U1 = sumRankX - (x.length * (x.length + 1)) / 2*.0*; right?