예제 #1
0
 private final double getRefBinomialProb(final int depth) {
   if (depth < binomialProbabilityDepthCache.length) return binomialProbabilityDepthCache[depth];
   else return MathUtils.binomialProbability(0, depth, 0.5);
 }
예제 #2
0
 static {
   for (int i = 1; i < binomialProbabilityDepthCache.length; i++) {
     binomialProbabilityDepthCache[i] = MathUtils.binomialProbability(0, i, 0.5);
   }
 }