On Aug 26, 2013, at 8:57 AM, 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; Hey thanks for looking at the code! I agree forcing double arithmetic is better, but I bet the reason we don't get bad results from this is that the numerator above is always going to be even (either x.len or its successor is guaranteed to be even) so int division is OK. Phil > > > 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