Fixed checkstyle warning about parentheses.
This commit is contained in:
parent
6c4e1d719f
commit
2aa4681cb8
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue