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 cast to double or long in the numerator then. Phil > > > > On Sun, Aug 25, 2013 at 8:27 PM, Dave Brosius <dbros...@apache.org> wrote: > >> 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? >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org