Fixed checkstyle warning about parentheses.
This commit is contained in:
parent
4f1d85c0bf
commit
4025b62c7d
|
@ -180,6 +180,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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -245,10 +245,10 @@ public class KolmogorovSmirnovTest {
|
|||
public double kolmogorovSmirnovTest(double[] x, double[] y, boolean strict) {
|
||||
final long lengthProduct = (long) x.length * y.length;
|
||||
if (lengthProduct < SMALL_SAMPLE_PRODUCT) {
|
||||
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