commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: MannWhitneyUTest.mannWhitneyU
Date Mon, 26 Aug 2013 06:15:35 GMT
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 <dbrosius@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?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message