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 <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?
>

Reply via email to