Fixed checkstyle warning about parentheses.

This commit is contained in:
Luc Maisonobe 2015-09-21 11:25:08 +02:00
parent 6c4e1d719f
commit 2aa4681cb8
2 changed files with 3 additions and 3 deletions

View File

@ -187,6 +187,6 @@ public class GeometricDistribution extends AbstractIntegerDistribution {
if (p == 0) {
return 0;
}
return Math.max(0, (int) Math.ceil((FastMath.log1p(-p)/log1mProbabilityOfSuccess-1)));
return Math.max(0, (int) Math.ceil(FastMath.log1p(-p)/log1mProbabilityOfSuccess-1));
}
}

View File

@ -249,10 +249,10 @@ public class KolmogorovSmirnovTest {
if (hasTies(x, y)) {
return exactP(x, y, strict);
}
return integralExactP(integralKolmogorovSmirnovStatistic(x, y) + ((strict)?1l:0l), x.length, y.length);
return integralExactP(integralKolmogorovSmirnovStatistic(x, y) + (strict?1l:0l), x.length, y.length);
}
if (lengthProduct < LARGE_SAMPLE_PRODUCT) {
return integralMonteCarloP(integralKolmogorovSmirnovStatistic(x, y) + ((strict)?1l:0l), x.length, y.length, MONTE_CARLO_ITERATIONS);
return integralMonteCarloP(integralKolmogorovSmirnovStatistic(x, y) + (strict?1l:0l), x.length, y.length, MONTE_CARLO_ITERATIONS);
}
return approximateP(kolmogorovSmirnovStatistic(x, y), x.length, y.length);
}